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

Commit d951763

Browse files
committed
Add a missing return type for event_auth.
1 parent 870ca14 commit d951763

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

mypy.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ disallow_untyped_defs = True
142142
[mypy-synapse.crypto.*]
143143
disallow_untyped_defs = True
144144

145+
[mypy-synapse.event_auth]
146+
disallow_untyped_defs = True
147+
145148
[mypy-synapse.events.*]
146149
disallow_untyped_defs = True
147150

synapse/event_auth.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,9 @@ def get_named_level(auth_events: StateMap[EventBase], name: str, default: int) -
763763
return default
764764

765765

766-
def _verify_third_party_invite(event: EventBase, auth_events: StateMap[EventBase]):
766+
def _verify_third_party_invite(
767+
event: EventBase, auth_events: StateMap[EventBase]
768+
) -> bool:
767769
"""
768770
Validates that the invite event is authorized by a previous third-party invite.
769771

0 commit comments

Comments
 (0)