Apply suggestions from code review

Co-Authored-By: Erik Johnston <erik@matrix.org>
pull/6840/head
Richard van der Hoff 2020-02-05 15:47:00 +00:00 committed by GitHub
parent 5ef91b96f1
commit 146fec0820
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -528,7 +528,7 @@ class FederationClient(FederationBase):
Returns:
a dict with members ``origin`` (a string
giving the serer the event was sent to, ``state`` (?) and
giving the server the event was sent to, ``state`` (?) and
``auth_chain``.
Raises:
@ -659,7 +659,9 @@ class FederationClient(FederationBase):
# content.
return resp[1]
async def send_invite(self, destination, room_id, event_id, pdu):
async def send_invite(
self, destination: str, room_id: str, event_id: str, pdu: EventBase,
) -> EventBase:
room_version = await self.store.get_room_version_id(room_id)
content = await self._do_send_invite(destination, pdu, room_version)