mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-11 20:10:06 -04:00
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.
This commit is contained in:
parent
0085dc5abc
commit
bb4b11846f
8 changed files with 82 additions and 54 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue