From 56e3ec5ed7bfff1b88694ca2a0591e3815e466e7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Sat, 27 Dec 2025 19:46:40 +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/routing.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/fastapi/routing.py b/fastapi/routing.py index 1eba16b597..6f6d4aac2d 100644 --- a/fastapi/routing.py +++ b/fastapi/routing.py @@ -350,9 +350,7 @@ def get_request_handler( ) errors = solved_result.errors if errors: - raise RequestValidationError( - errors, body=body, endpoint_ctx=endpoint_ctx - ) + raise RequestValidationError(errors, body=body, endpoint_ctx=endpoint_ctx) raw_response = await run_endpoint_function( dependant=dependant, @@ -364,9 +362,7 @@ def get_request_handler( raw_response.background = solved_result.background_tasks return raw_response - response_args: Dict[str, Any] = { - "background": solved_result.background_tasks - } + response_args: Dict[str, Any] = {"background": solved_result.background_tasks} # If status_code was set, use it, otherwise use the default from the # response class, in the case of redirect it's 307 if solved_result.response.status_code: