From 27417cf0a81e75edbce1f50374ce6a71e515fece Mon Sep 17 00:00:00 2001 From: Jason Robinson Date: Mon, 22 Jun 2026 23:10:20 +0300 Subject: [PATCH] Remove mypy ignore --- synapse/replication/tcp/client.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/synapse/replication/tcp/client.py b/synapse/replication/tcp/client.py index c2155f0517..dc68f55446 100644 --- a/synapse/replication/tcp/client.py +++ b/synapse/replication/tcp/client.py @@ -273,10 +273,8 @@ class ReplicationDataHandler: user_ids_to_room_ids = await self.store.get_rooms_for_users( updated_user_ids ) - # Typing: `user_ids_to_room_ids.values` is a frozenset, but one - # can still iterate over it, hence the ignore. - for batched_room_ids in user_ids_to_room_ids.values(): # type: ignore[assignment] - room_ids.update(batched_room_ids) + for batched_user_ids_to_room_ids in user_ids_to_room_ids.values(): + room_ids.update(batched_user_ids_to_room_ids) if room_ids: self.notifier.on_new_event(