summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2024-07-18 15:52:00 +0100
committerErik Johnston <erik@matrix.org>2024-07-18 15:52:00 +0100
commit532594e08d922f7cf97ddf50227dc3f4d3de1ff6 (patch)
treeea646b37923820c661dbc93276c9180a1d056151
parentMerge remote-tracking branch 'origin/develop' into erikj/ss_room_store (diff)
downloadsynapse-532594e08d922f7cf97ddf50227dc3f4d3de1ff6.tar.xz
Fix linting in tests
-rw-r--r--tests/handlers/test_sliding_sync.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/handlers/test_sliding_sync.py b/tests/handlers/test_sliding_sync.py

index 6c63719ca5..5e91be0026 100644 --- a/tests/handlers/test_sliding_sync.py +++ b/tests/handlers/test_sliding_sync.py
@@ -20,7 +20,7 @@ import logging from copy import deepcopy from typing import Dict, Optional, Tuple -from unittest.mock import Mock, patch +from unittest.mock import patch from parameterized import parameterized @@ -3792,9 +3792,9 @@ class GetRoomSyncDataTestCase(HomeserverTestCase): def _create_sync_configs( self, - user_id, - room_id, - timeline_limit=5, + user_id: str, + room_id: str, + timeline_limit: int = 5, ) -> Tuple[SlidingSyncConfig, RoomSyncConfig, _RoomMembershipForUser]: """Create the configs necessary to call `get_room_sync_data`""" requester = create_requester(user_id, device_id="foo_device")