mirror of https://github.com/tiangolo/fastapi.git
Fix OAuth2 flow setter typing for pre-commit
This commit is contained in:
parent
99f8602e86
commit
b64518fe02
|
|
@ -403,7 +403,7 @@ class OAuth2(SecurityBase):
|
|||
*,
|
||||
flows: OAuthFlowsModel | dict[str, dict[str, Any]],
|
||||
) -> None:
|
||||
self.model.flows = cast(OAuthFlowsModel, flows)
|
||||
cast(OAuth2Model, self.model).flows = cast(OAuthFlowsModel, flows)
|
||||
|
||||
def make_not_authenticated_error(self) -> HTTPException:
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in New Issue