Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Aug 8, 2022
1 parent c4074aa commit fefb0a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/rest/client/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class EmailRequestTokenBody(SynapseBaseModel):

@validator("id_access_token", always=True)
def token_required_for_identity_server(
cls: Type, token: Optional[str], values: Dict[str, object]
cls, token: Optional[str], values: Dict[str, object]
) -> Optional[str]:
if values.get("id_server") is not None and token is None:
raise ValueError("id_access_token is required if an id_server is supplied.")
Expand Down

0 comments on commit fefb0a8

Please sign in to comment.