summary refs log tree commit diff
path: root/synapse/crypto/event_signing.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-10-21 09:07:07 -0400
committerGitHub <noreply@github.com>2021-10-21 13:07:07 +0000
commit0f9adc99ada1f66f4897c8164dcf509a955e5584 (patch)
treeefc2c73d0f303d86ccd2aa97e3817891887e2e79 /synapse/crypto/event_signing.py
parentfix relative link in docker readme (#11144) (diff)
downloadsynapse-0f9adc99ada1f66f4897c8164dcf509a955e5584.tar.xz
Add missing type hints to synapse.crypto. (#11146)
And require type hints for this module.
Diffstat (limited to 'synapse/crypto/event_signing.py')
-rw-r--r--synapse/crypto/event_signing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/crypto/event_signing.py b/synapse/crypto/event_signing.py
index 0f2b632e47..7520647d1e 100644
--- a/synapse/crypto/event_signing.py
+++ b/synapse/crypto/event_signing.py
@@ -100,7 +100,7 @@ def compute_content_hash(
 
 
 def compute_event_reference_hash(
-    event, hash_algorithm: Hasher = hashlib.sha256
+    event: EventBase, hash_algorithm: Hasher = hashlib.sha256
 ) -> Tuple[str, bytes]:
     """Computes the event reference hash. This is the hash of the redacted
     event.