File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 1- import sys
21import types
32from contextlib import contextmanager
43from contextvars import ContextVar
2221from pydantic import VERSION as P_VERSION
2322from pydantic import BaseModel
2423from pydantic .fields import FieldInfo
25- from typing_extensions import Annotated , get_args , get_origin
24+ from typing_extensions import Annotated , Literal , get_args , get_origin
2625
2726# Reassign variable to make it reexported for mypy
2827PYDANTIC_VERSION = P_VERSION
@@ -63,12 +62,6 @@ def _is_union_type(t: Any) -> bool:
6362 return t is UnionType or t is Union
6463
6564
66- if sys .version_info >= (3 , 9 ):
67- from typing import Literal
68- else :
69- from typing_extensions import Literal
70-
71-
7265finish_init : ContextVar [bool ] = ContextVar ("finish_init" , default = True )
7366
7467
You can’t perform that action at this time.
0 commit comments