diff --git a/fastapi/__main__.py b/fastapi/__main__.py index fc36465f5f..c5f76795d1 100644 --- a/fastapi/__main__.py +++ b/fastapi/__main__.py @@ -1,3 +1,5 @@ +#main + from fastapi.cli import main main() diff --git a/fastapi/exceptions.py b/fastapi/exceptions.py index d7065c52fe..8b6697376b 100644 --- a/fastapi/exceptions.py +++ b/fastapi/exceptions.py @@ -14,6 +14,13 @@ 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 1856178fcb..8c3d063647 100644 --- a/fastapi/param_functions.py +++ b/fastapi/param_functions.py @@ -46,6 +46,15 @@ def Path( # noqa: N802 """ ), ] = None, + alias_priority: Annotated[ + int | None, + Doc( + """ + Priority of the alias. This affects whether an alias generator is used. + """ + ), + ] = _Unset, + alias_priority: Annotated[ int | None, Doc( @@ -92,6 +101,8 @@ def Path( # noqa: N802 """ ), ] = None, + + gt: Annotated[ float | None, Doc( diff --git a/fastapi/requests.py b/fastapi/requests.py index d16552c0a9..04b02a7efc 100644 --- a/fastapi/requests.py +++ b/fastapi/requests.py @@ -1,2 +1,11 @@ from starlette.requests import HTTPConnection as HTTPConnection # noqa: F401 -from starlette.requests import Request as Request # 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