]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
🔥 Remove unused NoneType (#10774)
authorSebastián Ramírez <tiangolo@gmail.com>
Tue, 12 Dec 2023 00:29:03 +0000 (00:29 +0000)
committerGitHub <noreply@github.com>
Tue, 12 Dec 2023 00:29:03 +0000 (00:29 +0000)
fastapi/types.py

index 7adf565a7b6b7d4f1eed3adf6a96faab66fe517c..3205654c73b6501f1c88e69f5cd6ceb821a889c7 100644 (file)
@@ -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]]