diff --git a/tests/rest/client/utils.py b/tests/rest/client/utils.py index 558dd531d39b..e10feed3d182 100644 --- a/tests/rest/client/utils.py +++ b/tests/rest/client/utils.py @@ -387,7 +387,7 @@ def _read_write_state( room_id: str, event_type: str, body: Optional[Dict[str, Any]], - tok: str, + tok: Optional[str], expect_code: int = HTTPStatus.OK, state_key: str = "", method: str = "GET", @@ -467,7 +467,7 @@ def send_state( room_id: str, event_type: str, body: Dict[str, Any], - tok: str, + tok: Optional[str], expect_code: int = HTTPStatus.OK, state_key: str = "", ) -> JsonDict: