From 2742624cc81d66b2b49a17c3c28199b4f25eed23 Mon Sep 17 00:00:00 2001 From: Jan Vollmer Date: Fri, 15 May 2026 12:54:41 +0200 Subject: [PATCH] narrow type ignore comment for mypy Signed-off-by: Jan Vollmer --- fastapi/routing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastapi/routing.py b/fastapi/routing.py index da2a38c53f..f8bc41f135 100644 --- a/fastapi/routing.py +++ b/fastapi/routing.py @@ -1001,7 +1001,7 @@ class APIRoute(routing.Route): ) @cached_property - def app(self) -> ASGIApp: # type: ignore + def app(self) -> ASGIApp: # type: ignore[override] return request_response(self.get_route_handler()) def init_attributes(self) -> None: