diff --git a/hypothesis-python/src/hypothesis/internal/compat.py b/hypothesis-python/src/hypothesis/internal/compat.py index 7f0af1ac2a..c31640e025 100644 --- a/hypothesis-python/src/hypothesis/internal/compat.py +++ b/hypothesis-python/src/hypothesis/internal/compat.py @@ -45,7 +45,8 @@ TypedDict as TypedDict, ) except ImportError: - pass + # We can use the old TypedDict from Python 3.8+ at runtime. + from typing import TypedDict as TypedDict class NotRequired: """A runtime placeholder for the NotRequired type, which is not available in Python <3.11."""