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

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dklimpel committed Mar 18, 2021
1 parent 9762a50 commit ce45076
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions synapse/rest/client/v1/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
from typing import TYPE_CHECKING, List, Optional, Tuple
from urllib import parse as urlparse

from twisted.web.server import Request

from synapse.api.constants import EventTypes, Membership
from synapse.api.errors import (
AuthError,
Expand Down Expand Up @@ -1011,7 +1009,9 @@ def __init__(self, hs: "HomeServer"):
self._auth = hs.get_auth()
self._space_summary_handler = hs.get_space_summary_handler()

async def on_GET(self, request: SynapseRequest, room_id: str) -> Tuple[int, JsonDict]:
async def on_GET(
self, request: SynapseRequest, room_id: str
) -> Tuple[int, JsonDict]:
requester = await self._auth.get_user_by_req(request, allow_guest=True)

return 200, await self._space_summary_handler.get_space_summary(
Expand All @@ -1021,7 +1021,9 @@ async def on_GET(self, request: SynapseRequest, room_id: str) -> Tuple[int, Json
max_rooms_per_space=parse_integer(request, "max_rooms_per_space"),
)

async def on_POST(self, request: SynapseRequest, room_id: str) -> Tuple[int, JsonDict]:
async def on_POST(
self, request: SynapseRequest, room_id: str
) -> Tuple[int, JsonDict]:
requester = await self._auth.get_user_by_req(request, allow_guest=True)
content = parse_json_object_from_request(request)

Expand Down

0 comments on commit ce45076

Please sign in to comment.