From d13fb7435bf9bdcbca4671dcc5935f8c0e4adf45 Mon Sep 17 00:00:00 2001 From: honglei Date: Fri, 25 Aug 2023 21:43:02 +0800 Subject: [PATCH] only use typing_extensions to import _AnnotatedAlias --- sqlmodel/main.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sqlmodel/main.py b/sqlmodel/main.py index 4ffeb59..14dbffd 100644 --- a/sqlmodel/main.py +++ b/sqlmodel/main.py @@ -55,10 +55,7 @@ if sys.version_info >= (3, 8): else: from typing_extensions import get_args, get_origin -if sys.version_info >= (3, 9): - from typing import Annotated, _AnnotatedAlias -else: - from typing_extensions import Annotated, _AnnotatedAlias +from typing_extensions import Annotated, _AnnotatedAlias _T = TypeVar("_T") NoArgAnyCallable = Callable[[], Any]