mirror of
https://github.com/PaiGramTeam/sqlmodel.git
synced 2024-11-22 07:08:06 +00:00
only use typing_extensions to import _AnnotatedAlias
This commit is contained in:
parent
dcb406f0ed
commit
d13fb7435b
@ -55,10 +55,7 @@ if sys.version_info >= (3, 8):
|
|||||||
else:
|
else:
|
||||||
from typing_extensions import get_args, get_origin
|
from typing_extensions import get_args, get_origin
|
||||||
|
|
||||||
if sys.version_info >= (3, 9):
|
from typing_extensions import Annotated, _AnnotatedAlias
|
||||||
from typing import Annotated, _AnnotatedAlias
|
|
||||||
else:
|
|
||||||
from typing_extensions import Annotated, _AnnotatedAlias
|
|
||||||
|
|
||||||
_T = TypeVar("_T")
|
_T = TypeVar("_T")
|
||||||
NoArgAnyCallable = Callable[[], Any]
|
NoArgAnyCallable = Callable[[], Any]
|
||||||
|
Loading…
Reference in New Issue
Block a user