Skip to content

Commit ef66ab3

Browse files
committed
Use typing_extensions.TypedDict on Python < 3.12
The current use of typing.TypedDict` in `pydantic_core.__init__.py` on Python 3.9 to 3.11 is inconsistent Pydantic. For further information visit https://errors.pydantic.dev/2.8/u/typed-dict-version
1 parent a072575 commit ef66ab3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pydantic_core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
else:
3535
from typing import NotRequired as _NotRequired
3636

37-
if _sys.version_info < (3, 9):
37+
if _sys.version_info < (3, 12):
3838
from typing_extensions import TypedDict as _TypedDict
3939
else:
4040
from typing import TypedDict as _TypedDict

0 commit comments

Comments
 (0)