mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-08-08 23:22:12 -04:00
Add missing type hints to synapse.crypto. (#11146)
And require type hints for this module.
This commit is contained in:
parent
09eff1b3db
commit
0f9adc99ad
5 changed files with 36 additions and 18 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue