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/handlers/room_member.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/handlers/room_member.py')
-rw-r--r-- | synapse/handlers/room_member.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py index 1660921306..4d20ed8357 100644 --- a/synapse/handlers/room_member.py +++ b/synapse/handlers/room_member.py @@ -155,6 +155,10 @@ class RoomMemberHandler(metaclass=abc.ABCMeta): """ raise NotImplementedError() + @abc.abstractmethod + async def forget(self, user: UserID, room_id: str) -> None: + raise NotImplementedError() + def ratelimit_invite(self, room_id: Optional[str], invitee_user_id: str): """Ratelimit invites by room and by target user. |