We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be0fc33 commit 12073e7Copy full SHA for 12073e7
hypothesis-python/src/hypothesis/strategies/_internal/types.py
@@ -39,9 +39,10 @@
39
from hypothesis.strategies._internal.lazy import unwrap_strategies
40
from hypothesis.strategies._internal.strategies import OneOfStrategy
41
42
+UnionType: typing.Any
43
try:
44
# The type of PEP-604 unions (`int | str`), added in Python 3.10
- from types import UnionType # type: ignore
45
+ from types import UnionType
46
except ImportError:
47
UnionType = ()
48
0 commit comments