diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-03-17 07:14:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-17 07:14:39 -0400 |
commit | b449af0379db871945f32a572883d47b5c9018a3 (patch) | |
tree | e9b5b4ad421e63260d1de848ed0867fde0d8fff5 /synapse/server.py | |
parent | Enable flake8-bugbear, but disable most checks. (#9499) (diff) | |
download | synapse-b449af0379db871945f32a572883d47b5c9018a3.tar.xz |
Add type hints to the room member handler. (#9631)
Diffstat (limited to 'synapse/server.py')
-rw-r--r-- | synapse/server.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/server.py b/synapse/server.py index 48ac87a124..dd4ee7dd3c 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -96,7 +96,7 @@ from synapse.handlers.room import ( RoomShutdownHandler, ) from synapse.handlers.room_list import RoomListHandler -from synapse.handlers.room_member import RoomMemberMasterHandler +from synapse.handlers.room_member import RoomMemberHandler, RoomMemberMasterHandler from synapse.handlers.room_member_worker import RoomMemberWorkerHandler from synapse.handlers.search import SearchHandler from synapse.handlers.set_password import SetPasswordHandler @@ -630,7 +630,7 @@ class HomeServer(metaclass=abc.ABCMeta): return ThirdPartyEventRules(self) @cache_in_self - def get_room_member_handler(self): + def get_room_member_handler(self) -> RoomMemberHandler: if self.config.worker_app: return RoomMemberWorkerHandler(self) return RoomMemberMasterHandler(self) |