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(
|
flows = OAuthFlowsModel(
|
||||||
password=cast(
|
password=cast(
|
||||||
Any,
|
Any,
|
||||||
{"tokenUrl": tokenUrl, "refreshUrl": refreshUrl, "scopes": scopes} if refreshUrl else
|
{"tokenUrl": tokenUrl, "refreshUrl": refreshUrl, "scopes": scopes}
|
||||||
{"tokenUrl": tokenUrl, "scopes": scopes}
|
if refreshUrl
|
||||||
|
else {"tokenUrl": tokenUrl, "scopes": scopes},
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
super().__init__(
|
super().__init__(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue