From ef66ab390e573bf78d75e849917acf284fc7d6b4 Mon Sep 17 00:00:00 2001 From: Isaac To Date: Tue, 13 Aug 2024 13:42:48 -0700 Subject: [PATCH] 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 --- python/pydantic_core/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pydantic_core/__init__.py b/python/pydantic_core/__init__.py index 5b2655c91..791de9d92 100644 --- a/python/pydantic_core/__init__.py +++ b/python/pydantic_core/__init__.py @@ -34,7 +34,7 @@ else: from typing import NotRequired as _NotRequired -if _sys.version_info < (3, 9): +if _sys.version_info < (3, 12): from typing_extensions import TypedDict as _TypedDict else: from typing import TypedDict as _TypedDict