From fefb0a8862b0dbd8eb7a64b66683e7a53591e65c Mon Sep 17 00:00:00 2001 From: David Robertson Date: Mon, 8 Aug 2022 19:10:21 +0100 Subject: [PATCH] Fix mypy --- synapse/rest/client/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/rest/client/models.py b/synapse/rest/client/models.py index 42615b96a5ea..04c7723b0df4 100644 --- a/synapse/rest/client/models.py +++ b/synapse/rest/client/models.py @@ -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.")