From 030f01473ae61438abaf026545a42b8968a30245 Mon Sep 17 00:00:00 2001 From: Evgeny Bokshitsky Date: Sun, 26 Oct 2025 22:22:32 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20remove=20unused=20"response"=20v?= =?UTF-8?q?ariable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastapi/routing.py | 1 - 1 file changed, 1 deletion(-) diff --git a/fastapi/routing.py b/fastapi/routing.py index 0d47c9b9a..4c1901b29 100644 --- a/fastapi/routing.py +++ b/fastapi/routing.py @@ -317,7 +317,6 @@ def get_request_handler( actual_response_class = response_class async def app(request: Request) -> Response: - response: Union[Response, None] = None file_stack = request.scope.get("fastapi_middleware_astack") assert isinstance(file_stack, AsyncExitStack), ( "fastapi_middleware_astack not found in request scope"