Update type hints and allow InternalEventTypes for @event.on

This commit is contained in:
Tulir Asokan 2019-09-27 00:45:30 +03:00
parent ed6055744f
commit 7fcb7cbf0a
2 changed files with 6 additions and 5 deletions

View file

@ -73,7 +73,7 @@ class MaubotMessageEvent(MessageEvent):
def mark_read(self) -> Awaitable[None]:
return self.client.send_receipt(self.room_id, self.event_id, "m.read")
def react(self, key: str) -> Awaitable[None]:
def react(self, key: str) -> Awaitable[EventID]:
return self.client.react(self.room_id, self.event_id, key)
def edit(self, content: Union[str, MessageEventContent],