Coverage for fastapi/types.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2025-12-04 08:29 +0000

1import types 1abcdefg

2from enum import Enum 1abcdefg

3from typing import Any, Callable, Dict, Optional, Set, Tuple, Type, TypeVar, Union 1abcdefg

4 

5from pydantic import BaseModel 1abcdefg

6 

7DecoratedCallable = TypeVar("DecoratedCallable", bound=Callable[..., Any]) 1abcdefg

8UnionType = getattr(types, "UnionType", Union) 1abcdefg

9ModelNameMap = Dict[Union[Type[BaseModel], Type[Enum]], str] 1abcdefg

10IncEx = Union[Set[int], Set[str], Dict[int, Any], Dict[str, Any]] 1abcdefg

11DependencyCacheKey = Tuple[Optional[Callable[..., Any]], Tuple[str, ...], str] 1abcdefg