diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-04-23 12:02:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-23 12:02:16 -0400 |
commit | e83627926fb5373b383129b99a5039e8a2e329af (patch) | |
tree | c31b106b4297fdb13755dca06870816094145540 /synapse/event_auth.py | |
parent | Make DomainSpecificString an attrs class (#9875) (diff) | |
download | synapse-e83627926fb5373b383129b99a5039e8a2e329af.tar.xz |
Add type hints to auth and auth_blocking. (#9876)
Diffstat (limited to '')
-rw-r--r-- | synapse/event_auth.py | 4 |
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"]} |