Browse Source

chore: adding type to get_security_scopes

adding type hint for get_security_scopes in
tests/test_security_oauth2_scopes.py
pull/13369/head
Joao-Pedro-P-Holanda 2 months ago
parent
commit
55d8392d85
  1. 4
      tests/test_security_oauth2_scopes.py

4
tests/test_security_oauth2_scopes.py

@ -12,7 +12,9 @@ oauth2_scheme = OAuth2PasswordBearer(
)
def get_security_scopes(security_scopes: SecurityScopes, token=Depends(oauth2_scheme)):
def get_security_scopes(
security_scopes: SecurityScopes, token=Depends(oauth2_scheme)
) -> list[str]:
return security_scopes.scopes

Loading…
Cancel
Save