From 3b19dee39dbabf9f46104531ca898d3e54367201 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 9 Aug 2025 20:06:58 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20[pre-commit.ci]=20Auto=20format?= =?UTF-8?q?=20from=20pre-commit.com=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastapi/applications.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/fastapi/applications.py b/fastapi/applications.py index 8a20dc59b..14b77057a 100644 --- a/fastapi/applications.py +++ b/fastapi/applications.py @@ -973,8 +973,7 @@ class FastAPI(Starlette): self.exception_handlers: Dict[ Any, Callable[[Request, Any], Union[Response, Awaitable[Response]]] ] = {} if exception_handlers is None else dict(exception_handlers) - self.exception_handlers.setdefault( - HTTPException, http_exception_handler) + self.exception_handlers.setdefault(HTTPException, http_exception_handler) self.exception_handlers.setdefault( RequestValidationError, request_validation_exception_handler ) @@ -1052,8 +1051,7 @@ class FastAPI(Starlette): swagger_ui_parameters=self.swagger_ui_parameters, ) - self.add_route(self.docs_url, swagger_ui_html, - include_in_schema=False) + self.add_route(self.docs_url, swagger_ui_html, include_in_schema=False) if self.swagger_ui_oauth2_redirect_url: @@ -1299,8 +1297,7 @@ class FastAPI(Starlette): self, router: Annotated[routing.APIRouter, Doc("The `APIRouter` to include.")], *, - prefix: Annotated[str, Doc( - "An optional path prefix for the router.")] = "", + prefix: Annotated[str, Doc("An optional path prefix for the router.")] = "", tags: Annotated[ Optional[List[Union[str, Enum]]], Doc(