mirror of
https://github.com/element-hq/synapse.git
synced 2025-03-14 09:45:51 +00:00
Fix error: X | Y syntax for unions requires Python 3.10
This commit is contained in:
parent
76f087c1d9
commit
a3039b3a01
1 changed files with 1 additions and 1 deletions
|
@ -1528,7 +1528,7 @@ class RoomHierarchyRestServlet(RestServlet):
|
|||
limit = parse_integer(request, "limit")
|
||||
|
||||
# twisted.web.server.Request.args is incorrectly defined as Optional[Any]
|
||||
remote_room_hosts: List[str] | None
|
||||
remote_room_hosts = None
|
||||
if self.msc4235_enabled:
|
||||
args: Dict[bytes, List[bytes]] = request.args # type: ignore
|
||||
remote_room_hosts = parse_strings_from_args(
|
||||
|
|
Loading…
Add table
Reference in a new issue