mirror of
https://github.com/fastapi/fastapi.git
synced 2026-02-06 12:21:13 -05:00
12 lines
430 B
Python
12 lines
430 B
Python
import types
|
|
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]
|
|
DependencyCacheKey = tuple[Optional[Callable[..., Any]], tuple[str, ...], str]
|