pre-commit-ci-lite[bot]
1 week ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
5 additions and
1 deletions
-
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 [] |
|
|
|
) |
|
|
|
|