summary refs log tree commit diff
path: root/synapse/handlers/room_member.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-03-17 07:14:39 -0400
committerGitHub <noreply@github.com>2021-03-17 07:14:39 -0400
commitb449af0379db871945f32a572883d47b5c9018a3 (patch)
treee9b5b4ad421e63260d1de848ed0867fde0d8fff5 /synapse/handlers/room_member.py
parentEnable flake8-bugbear, but disable most checks. (#9499) (diff)
downloadsynapse-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.py4
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.