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 87f9f75 commit 90d1f59Copy full SHA for 90d1f59
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 sys.version_info[:2] < (3, 10):
+ if not isinstance(thing, 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