summary refs log tree commit diff
path: root/synapse/event_auth.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-04-23 12:02:16 -0400
committerGitHub <noreply@github.com>2021-04-23 12:02:16 -0400
commite83627926fb5373b383129b99a5039e8a2e329af (patch)
treec31b106b4297fdb13755dca06870816094145540 /synapse/event_auth.py
parentMake DomainSpecificString an attrs class (#9875) (diff)
downloadsynapse-e83627926fb5373b383129b99a5039e8a2e329af.tar.xz
Add type hints to auth and auth_blocking. (#9876)
Diffstat (limited to '')
-rw-r--r--synapse/event_auth.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/event_auth.py b/synapse/event_auth.py
index c831d9f73c..afc2bc8267 100644
--- a/synapse/event_auth.py
+++ b/synapse/event_auth.py
@@ -14,7 +14,7 @@
 # limitations under the License.
 
 import logging
-from typing import List, Optional, Set, Tuple
+from typing import Any, Dict, List, Optional, Set, Tuple
 
 from canonicaljson import encode_canonical_json
 from signedjson.key import decode_verify_key_bytes
@@ -688,7 +688,7 @@ def _verify_third_party_invite(event: EventBase, auth_events: StateMap[EventBase
     return False
 
 
-def get_public_keys(invite_event):
+def get_public_keys(invite_event: EventBase) -> List[Dict[str, Any]]:
     public_keys = []
     if "public_key" in invite_event.content:
         o = {"public_key": invite_event.content["public_key"]}