pythonasyncioapiasyncfastapiframeworkjsonjson-schemaopenapiopenapi3pydanticpython-typespython3redocreststarletteswaggerswagger-uiuvicornweb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
476 B
13 lines
476 B
import types
|
|
from collections.abc import Callable
|
|
from enum import Enum
|
|
from typing import Any, TypeAlias, 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]
|
|
IncEx: TypeAlias = _IncEx
|
|
|