diff --git a/hypothesis-python/src/hypothesis/strategies/_internal/regex.py b/hypothesis-python/src/hypothesis/strategies/_internal/regex.py index b93e8d192b..2e6611377b 100644 --- a/hypothesis-python/src/hypothesis/strategies/_internal/regex.py +++ b/hypothesis-python/src/hypothesis/strategies/_internal/regex.py @@ -15,8 +15,8 @@ import re._constants as sre import re._parser as sre_parse except ImportError: # Python < 3.11 - import sre_constants as sre # type: ignore - import sre_parse # type: ignore + import sre_constants as sre + import sre_parse from hypothesis import reject, strategies as st from hypothesis.internal.charmap import as_general_categories, categories