From 1e72c3e35435bcb790b39d28b33c5e882be5216f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Wed, 27 May 2026 15:56:29 +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/dependencies/utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fastapi/dependencies/utils.py b/fastapi/dependencies/utils.py index f12e0b37c2..ca3184ec36 100644 --- a/fastapi/dependencies/utils.py +++ b/fastapi/dependencies/utils.py @@ -145,7 +145,11 @@ def get_flat_dependant( if visited is None: visited = set() visited.add(dependant.cache_key) - if parent_oauth_scopes or dependant.parent_oauth_scopes or dependant.own_oauth_scopes: + if ( + parent_oauth_scopes + or dependant.parent_oauth_scopes + or dependant.own_oauth_scopes + ): use_parent_oauth_scopes = (parent_oauth_scopes or []) + ( dependant.oauth_scopes or [] )