mirror of
https://github.com/fastapi/fastapi.git
synced 2026-09-14 13:36:21 +08:00
ac438b9934
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
12 lines
479 B
Python
12 lines
479 B
Python
import types
|
|
from enum import Enum
|
|
from typing import Any, Callable, Dict, Optional, Set, Tuple, Type, TypeVar, Union
|
|
|
|
from pydantic import BaseModel
|
|
|
|
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]
|