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.
11 lines
455 B
11 lines
455 B
import types
|
|
from enum import Enum
|
|
from typing import Any, Callable, Optional, 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]
|
|
|