Browse Source

Replace IncEx type copy with export from pydantic

pull/14641/head
Michiel 7 months ago
parent
commit
c0efd0ee74
  1. 2
      fastapi/types.py

2
fastapi/types.py

@ -3,9 +3,9 @@ from enum import Enum
from typing import Any, Callable, Optional, TypeVar, Union
from pydantic import BaseModel
from pydantic.main import IncEx as IncEx
DecoratedCallable = TypeVar("DecoratedCallable", bound=Callable[..., Any])
UnionType = getattr(types, "UnionType", Union)
ModelNameMap = dict[Union[type[BaseModel], type[Enum]], str]
IncEx = Union[set[int], set[str], dict[int, Any], dict[str, Any]]
DependencyCacheKey = tuple[Optional[Callable[..., Any]], tuple[str, ...], str]

Loading…
Cancel
Save