Skip to content

Commit 12073e7

Browse files
committed
Fix type annotation
1 parent be0fc33 commit 12073e7

File tree

1 file changed

+2
-1
lines changed
  • hypothesis-python/src/hypothesis/strategies/_internal

1 file changed

+2
-1
lines changed

hypothesis-python/src/hypothesis/strategies/_internal/types.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@
3939
from hypothesis.strategies._internal.lazy import unwrap_strategies
4040
from hypothesis.strategies._internal.strategies import OneOfStrategy
4141

42+
UnionType: typing.Any
4243
try:
4344
# The type of PEP-604 unions (`int | str`), added in Python 3.10
44-
from types import UnionType # type: ignore
45+
from types import UnionType
4546
except ImportError:
4647
UnionType = ()
4748

0 commit comments

Comments
 (0)