Coverage for fastapi/types.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2024-08-08 03:53 +0000

1import types 1abcde

2from enum import Enum 1abcde

3from typing import Any, Callable, Dict, Set, Type, TypeVar, Union 1abcde

4 

5from pydantic import BaseModel 1abcde

6 

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

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

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

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