@@ -118,7 +118,7 @@ def __init__(self, hs: "HomeServer"):
118118 Optional [int ],
119119 Optional [int ],
120120 Optional [str ],
121- Optional [Tuple [str , ... ]],
121+ Optional [List [str ]],
122122 ]
123123 ] = ResponseCache (
124124 hs .get_clock (),
@@ -134,7 +134,7 @@ async def get_room_hierarchy(
134134 max_depth : Optional [int ] = None ,
135135 limit : Optional [int ] = None ,
136136 from_token : Optional [str ] = None ,
137- remote_room_hosts : Optional [Tuple [str , ... ]] = None ,
137+ remote_room_hosts : Optional [List [str ]] = None ,
138138 ) -> JsonDict :
139139 """
140140 Implementation of the room hierarchy C-S API.
@@ -191,7 +191,7 @@ async def _get_room_hierarchy(
191191 max_depth : Optional [int ] = None ,
192192 limit : Optional [int ] = None ,
193193 from_token : Optional [str ] = None ,
194- remote_room_hosts : Optional [Tuple [str , ... ]] = None ,
194+ remote_room_hosts : Optional [List [str ]] = None ,
195195 ) -> JsonDict :
196196 """See docstring for SpaceSummaryHandler.get_room_hierarchy."""
197197
@@ -211,7 +211,7 @@ async def _get_room_hierarchy(
211211
212212 if not local_room :
213213 room_hierarchy = await self ._summarize_remote_room_hierarchy (
214- _RoomQueueEntry (requested_room_id , remote_room_hosts or () ),
214+ _RoomQueueEntry (requested_room_id , remote_room_hosts or [] ),
215215 False ,
216216 )
217217 root_room_entry = room_hierarchy [0 ]
@@ -252,7 +252,7 @@ async def _get_room_hierarchy(
252252 processed_rooms = set (pagination_session ["processed_rooms" ])
253253 else :
254254 # The queue of rooms to process, the next room is last on the stack.
255- room_queue = [_RoomQueueEntry (requested_room_id , remote_room_hosts or () )]
255+ room_queue = [_RoomQueueEntry (requested_room_id , remote_room_hosts or [] )]
256256
257257 # Rooms we have already processed.
258258 processed_rooms = set ()
0 commit comments