diff --git a/fastapi/__main__.py b/fastapi/__main__.py index c5f76795d1..809e97bec2 100644 --- a/fastapi/__main__.py +++ b/fastapi/__main__.py @@ -1,4 +1,4 @@ -#main +# main from fastapi.cli import main diff --git a/fastapi/exceptions.py b/fastapi/exceptions.py index 8b6697376b..d7065c52fe 100644 --- a/fastapi/exceptions.py +++ b/fastapi/exceptions.py @@ -14,13 +14,6 @@ class EndpointContext(TypedDict, total=False): line: int - - - - - - - class HTTPException(StarletteHTTPException): """ An HTTP exception you can raise in your own code to show errors to the client. diff --git a/fastapi/param_functions.py b/fastapi/param_functions.py index 8c3d063647..82270c6b2b 100644 --- a/fastapi/param_functions.py +++ b/fastapi/param_functions.py @@ -54,7 +54,6 @@ def Path( # noqa: N802 """ ), ] = _Unset, - alias_priority: Annotated[ int | None, Doc( @@ -101,8 +100,6 @@ def Path( # noqa: N802 """ ), ] = None, - - gt: Annotated[ float | None, Doc( diff --git a/fastapi/requests.py b/fastapi/requests.py index 04b02a7efc..9e367a5671 100644 --- a/fastapi/requests.py +++ b/fastapi/requests.py @@ -1,11 +1,2 @@ from starlette.requests import HTTPConnection as HTTPConnection # noqa: F401 from starlette.requests import Request as Request # noqa: F401f - - -from starlette.requests import HTTPConnection as HTTPConnection # noqa: F401 -from starlette.requests import Request as Request # noqa: F401f - - - -from starlette.requests import HTTPConnection as HTTPConnection # noqa: F401 -from starlette.requests import Request as Request # noqa: F401f