From 965e465b3e728b34caf7293eae8cefc3bce63f7c Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Tue, 17 Oct 2023 13:48:28 -0400 Subject: [PATCH] Fix-up incorrect cast. --- synapse/storage/databases/main/client_ips.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/storage/databases/main/client_ips.py b/synapse/storage/databases/main/client_ips.py index 96fa188e02e2..c006129625c2 100644 --- a/synapse/storage/databases/main/client_ips.py +++ b/synapse/storage/databases/main/client_ips.py @@ -509,7 +509,7 @@ async def _get_last_client_ip_by_device_from_database( keyvalues["device_id"] = device_id res = cast( - List[Tuple[str, str, Optional[str], Optional[str], Optional[int]]], + List[Tuple[str, Optional[str], Optional[str], str, Optional[int]]], await self.db_pool.simple_select_list( table="devices", keyvalues=keyvalues,