From: Sebastián Ramírez Date: Tue, 12 Dec 2023 00:29:03 +0000 (+0000) Subject: 🔥 Remove unused NoneType (#10774) X-Git-Tag: 0.105.0~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b98c65cb36b5f6ee159f4b2a99fbc380247b8820;p=thirdparty%2Ffastapi%2Ffastapi.git 🔥 Remove unused NoneType (#10774) --- diff --git a/fastapi/types.py b/fastapi/types.py index 7adf565a7b..3205654c73 100644 --- a/fastapi/types.py +++ b/fastapi/types.py @@ -6,6 +6,5 @@ from pydantic import BaseModel DecoratedCallable = TypeVar("DecoratedCallable", bound=Callable[..., Any]) UnionType = getattr(types, "UnionType", Union) -NoneType = getattr(types, "UnionType", None) ModelNameMap = Dict[Union[Type[BaseModel], Type[Enum]], str] IncEx = Union[Set[int], Set[str], Dict[int, Any], Dict[str, Any]]