From d4da10cbe7de709a947ff8bcb49d2114d207165d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 28 Oct 2025 07:56:20 +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/routing.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fastapi/routing.py b/fastapi/routing.py index 4c1901b29..7080d044c 100644 --- a/fastapi/routing.py +++ b/fastapi/routing.py @@ -397,9 +397,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: