diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-10-07 08:58:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-07 08:58:21 -0400 |
commit | b460a088c647a6d3ea0e5a9f4f80d86bb9e303b3 (patch) | |
tree | 8fe8e12f5c0837ffd20bba15f7e0a0b140d2799f /synapse/storage/databases/main | |
parent | Fix returning incorrect prev_batch token in incremental sync (#8486) (diff) | |
download | synapse-b460a088c647a6d3ea0e5a9f4f80d86bb9e303b3.tar.xz |
Add typing information to the device handler. (#8407)
Diffstat (limited to 'synapse/storage/databases/main')
-rw-r--r-- | synapse/storage/databases/main/devices.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/storage/databases/main/devices.py b/synapse/storage/databases/main/devices.py index 317d6cde95..2d0a6408b5 100644 --- a/synapse/storage/databases/main/devices.py +++ b/synapse/storage/databases/main/devices.py @@ -911,7 +911,7 @@ class DeviceStore(DeviceWorkerStore, DeviceBackgroundUpdateStore): self._clock.looping_call(self._prune_old_outbound_device_pokes, 60 * 60 * 1000) async def store_device( - self, user_id: str, device_id: str, initial_device_display_name: str + self, user_id: str, device_id: str, initial_device_display_name: Optional[str] ) -> bool: """Ensure the given device is known; add it to the store if not @@ -1029,7 +1029,7 @@ class DeviceStore(DeviceWorkerStore, DeviceBackgroundUpdateStore): ) async def update_remote_device_list_cache_entry( - self, user_id: str, device_id: str, content: JsonDict, stream_id: int + self, user_id: str, device_id: str, content: JsonDict, stream_id: str ) -> None: """Updates a single device in the cache of a remote user's devicelist. @@ -1057,7 +1057,7 @@ class DeviceStore(DeviceWorkerStore, DeviceBackgroundUpdateStore): user_id: str, device_id: str, content: JsonDict, - stream_id: int, + stream_id: str, ) -> None: if content.get("deleted"): self.db_pool.simple_delete_txn( |