Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Add some type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
reivilibre committed Dec 20, 2021
1 parent af654b9 commit f11fc08
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/rest/client/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,12 @@ def invite(self, room=None, src=None, targ=None, expect_code=200, tok=None):

def join(
self,
room=None,
user=None,
expect_code=200,
tok=None,
room: str,
user: Optional[str] = None,
expect_code: int = 200,
tok: Optional[str] = None,
appservice_user_id: Optional[str] = None,
):
) -> None:
self.change_membership(
room=room,
src=user,
Expand Down Expand Up @@ -207,8 +207,8 @@ def leave(self, room=None, user=None, expect_code=200, tok=None):
def change_membership(
self,
room: str,
src: str,
targ: str,
src: Optional[str],
targ: Optional[str],
membership: str,
extra_data: Optional[dict] = None,
tok: Optional[str] = None,
Expand Down

0 comments on commit f11fc08

Please sign in to comment.