mirror of
https://github.com/fastapi/fastapi.git
synced 2026-02-25 19:29:45 -05:00
13 lines
438 B
Python
13 lines
438 B
Python
import types
|
|
from collections.abc import Callable
|
|
from enum import Enum
|
|
from typing import Any, 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[type[BaseModel] | type[Enum], str]
|
|
DependencyCacheKey = tuple[Callable[..., Any] | None, tuple[str, ...], str]
|