We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ba33aa commit 36633eaCopy full SHA for 36633ea
hypothesis-python/src/hypothesis/strategies/_internal/types.py
@@ -98,7 +98,7 @@ def try_issubclass(thing, superclass):
98
99
100
def is_a_new_type(thing):
101
- if not isinstance(thing, type):
+ if not isinstance(typing.NewType, type):
102
# At runtime, `typing.NewType` returns an identity function rather
103
# than an actual type, but we can check whether that thing matches.
104
return (
0 commit comments