Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Add annotation which would have caught #12410
Browse files Browse the repository at this point in the history
Can't use `args: QueryParams` here because QueryParams is a Mapping,
which is immutable.
  • Loading branch information
David Robertson committed Apr 7, 2022
1 parent 8e0267f commit 85a8086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/federation/transport/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 85a8086

Please sign in to comment.