From 7f101ba5b091a8da912db7b2cdd5198156f055d5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Wed, 25 Mar 2026 09:33:06 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Auto=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastapi/__main__.py | 2 +- fastapi/exceptions.py | 7 ------- fastapi/param_functions.py | 3 --- fastapi/requests.py | 9 --------- 4 files changed, 1 insertion(+), 20 deletions(-) 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