diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-04-29 07:17:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-29 07:17:28 -0400 |
commit | bb4b11846f3bdd539a1671eb8f1db8ee1a0bf57a (patch) | |
tree | d288f264e0b988905c11afac12c1db4c9919de30 /synapse/handlers/room_member.py | |
parent | Delete room endpoint (#9889) (diff) | |
download | synapse-bb4b11846f3bdd539a1671eb8f1db8ee1a0bf57a.tar.xz |
Add missing type hints to handlers and fix a Spam Checker type hint. (#9896)
The user_may_create_room_alias method on spam checkers declared the room_alias parameter as a str when in reality it is passed a RoomAlias object.
Diffstat (limited to 'synapse/handlers/room_member.py')
-rw-r--r-- | synapse/handlers/room_member.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py index 2c5bada1d8..20700fc5a8 100644 --- a/synapse/handlers/room_member.py +++ b/synapse/handlers/room_member.py @@ -1044,7 +1044,7 @@ class RoomMemberHandler(metaclass=abc.ABCMeta): class RoomMemberMasterHandler(RoomMemberHandler): - def __init__(self, hs): + def __init__(self, hs: "HomeServer"): super().__init__(hs) self.distributor = hs.get_distributor() |