mirror of https://github.com/tiangolo/fastapi.git
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
This commit is contained in:
parent
c8c04115a1
commit
3122c3ad34
|
|
@ -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…
Reference in New Issue