Add type hints and comments to event auth code. (#10393)

This commit is contained in:
Patrick Cloke 2021-07-14 09:13:40 -04:00 committed by GitHub
parent 0d5b08ac7a
commit eb3beb8f12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 10 deletions

View file

@ -48,6 +48,9 @@ def check(
room_version_obj: the version of the room
event: the event being checked.
auth_events: the existing room state.
do_sig_check: True if it should be verified that the sending server
signed the event.
do_size_check: True if the size of the event fields should be verified.
Raises:
AuthError if the checks fail