From bb67044c67b705d3ac7990ef067deb786e8d5afe Mon Sep 17 00:00:00 2001 From: Isaac To Date: Wed, 14 Aug 2024 00:37:07 -0700 Subject: [PATCH] Use `typing_extensions.TypedDict` on Python < 3.12 (#1404) --- 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