From 85a808606fe0f27ca8b795a394f4ae69e8e403a3 Mon Sep 17 00:00:00 2001 From: David Robertson Date: Thu, 7 Apr 2022 17:54:18 +0100 Subject: [PATCH] Add annotation which would have caught #12410 Can't use `args: QueryParams` here because QueryParams is a Mapping, which is immutable. --- synapse/federation/transport/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/federation/transport/client.py b/synapse/federation/transport/client.py index 0ea4688e29c2..01dc5ca94f99 100644 --- a/synapse/federation/transport/client.py +++ b/synapse/federation/transport/client.py @@ -504,7 +504,7 @@ async def get_public_rooms( else: path = _create_v1_path("/publicRooms") - args: Dict[str, Any] = { + args: Dict[str, Union[str, Iterable[str]]] = { "include_all_networks": "true" if include_all_networks else "false" } if third_party_instance_id: