From 2d746c9616082876e64787f923270e9df1c3f23f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Fri, 20 Mar 2026 20:01:45 +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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fastapi/routing.py b/fastapi/routing.py index 3e6a972964..d60af8adcc 100644 --- a/fastapi/routing.py +++ b/fastapi/routing.py @@ -1773,7 +1773,9 @@ class APIRouter(routing.Router): deprecated=( route.deprecated if route.deprecated is not None - else self.deprecated if deprecated is None else deprecated + else self.deprecated + if deprecated is None + else deprecated ), methods=route.methods, operation_id=route.operation_id,