Skip to content

Commit 2b0f157

Browse files
committed
update utils.py for matrix-org#12094
1 parent db2785b commit 2b0f157

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/rest/client/utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def _read_write_state(
387387
room_id: str,
388388
event_type: str,
389389
body: Optional[Dict[str, Any]],
390-
tok: str,
390+
tok: Optional[str],
391391
expect_code: int = HTTPStatus.OK,
392392
state_key: str = "",
393393
method: str = "GET",
@@ -467,7 +467,7 @@ def send_state(
467467
room_id: str,
468468
event_type: str,
469469
body: Dict[str, Any],
470-
tok: str,
470+
tok: Optional[str],
471471
expect_code: int = HTTPStatus.OK,
472472
state_key: str = "",
473473
) -> JsonDict:

0 commit comments

Comments
 (0)