mirror of https://github.com/tiangolo/fastapi.git
Merge 73b1a1e6a5 into da4135ce1e
This commit is contained in:
commit
d856e05d79
|
|
@ -1,12 +1,13 @@
|
|||
import types
|
||||
from collections.abc import Callable
|
||||
from enum import Enum
|
||||
from typing import Any, TypeVar, Union
|
||||
from typing import Any, TypeAlias, TypeVar, Union
|
||||
|
||||
from pydantic import BaseModel
|
||||
from pydantic.main import IncEx as IncEx
|
||||
from pydantic.main import IncEx as _IncEx
|
||||
|
||||
DecoratedCallable = TypeVar("DecoratedCallable", bound=Callable[..., Any])
|
||||
UnionType = getattr(types, "UnionType", Union)
|
||||
ModelNameMap = dict[type[BaseModel] | type[Enum], str]
|
||||
DependencyCacheKey = tuple[Callable[..., Any] | None, tuple[str, ...], str]
|
||||
IncEx: TypeAlias = _IncEx
|
||||
|
|
|
|||
Loading…
Reference in New Issue