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

Commit

Permalink
Fix type hint.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed May 12, 2023
1 parent 748e9b6 commit c075657
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion synapse/event_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,9 @@ def _verify_third_party_invite(
verify_key = decode_verify_key_bytes(
key_name, decode_base64(public_key)
)
verify_signed_json(signed, server, verify_key)
# verify_signed_json incorrectly states it wants a dict, it
# just needs a mapping.
verify_signed_json(signed, server, verify_key) # type: ignore[arg-type]

# We got the public key from the invite, so we know that the
# correct server signed the signed bundle.
Expand Down

0 comments on commit c075657

Please sign in to comment.