Skip to content

Commit

Permalink
export typeddict at runtime when typing extensions is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
qthequartermasterman committed May 3, 2024
1 parent 491b6fc commit e3cabf5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hypothesis-python/src/hypothesis/internal/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit e3cabf5

Please sign in to comment.