summary refs log tree commit diff
path: root/tests/rest
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-08-11 10:43:40 -0400
committerGitHub <noreply@github.com>2021-08-11 10:43:40 -0400
commitfab352ac2cb6a9d69a74be6d4255a9b71e0f7945 (patch)
treecb219d3166c1efad89f95e277b81420b37be93bb /tests/rest
parentsupport federation queries through http connect proxy (#10475) (diff)
downloadsynapse-fab352ac2cb6a9d69a74be6d4255a9b71e0f7945.tar.xz
Fix type hints in space summary tests. (#10575)
And ensure that the file is checked via mypy.
Diffstat (limited to 'tests/rest')
-rw-r--r--tests/rest/client/v1/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/rest/client/v1/utils.py b/tests/rest/client/v1/utils.py
index fc2d35596e..954ad1a1fd 100644
--- a/tests/rest/client/v1/utils.py
+++ b/tests/rest/client/v1/utils.py
@@ -47,10 +47,10 @@ class RestHelper:
 
     def create_room_as(
         self,
-        room_creator: str = None,
+        room_creator: Optional[str] = None,
         is_public: bool = True,
-        room_version: str = None,
-        tok: str = None,
+        room_version: Optional[str] = None,
+        tok: Optional[str] = None,
         expect_code: int = 200,
         extra_content: Optional[Dict] = None,
         custom_headers: Optional[