Browse Source

🎨 Auto format

pull/15620/head
pre-commit-ci-lite[bot] 1 week ago
committed by GitHub
parent
commit
1e72c3e354
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 6
      fastapi/dependencies/utils.py

6
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 []
)

Loading…
Cancel
Save