Browse Source

🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

pull/11460/head
pre-commit-ci[bot] 12 months ago
parent
commit
3122c3ad34
  1. 5
      fastapi/security/oauth2.py

5
fastapi/security/oauth2.py

@ -471,8 +471,9 @@ class OAuth2PasswordBearer(OAuth2):
flows = OAuthFlowsModel(
password=cast(
Any,
{"tokenUrl": tokenUrl, "refreshUrl": refreshUrl, "scopes": scopes} if refreshUrl else
{"tokenUrl": tokenUrl, "scopes": scopes}
{"tokenUrl": tokenUrl, "refreshUrl": refreshUrl, "scopes": scopes}
if refreshUrl
else {"tokenUrl": tokenUrl, "scopes": scopes},
)
)
super().__init__(

Loading…
Cancel
Save