Fix style checking due to updated black.

This commit is contained in:
Patrick Cloke 2021-02-19 08:19:54 -05:00
parent d9f1dccba9
commit c4a55ac4a4
2 changed files with 5 additions and 3 deletions

View File

@ -310,8 +310,7 @@ class ProfileHandler(BaseHandler):
await self._update_join_states(requester, target_user)
async def on_profile_query(self, args: JsonDict) -> JsonDict:
"""Handles federation profile query requests.
"""
"""Handles federation profile query requests."""
if not self.hs.config.allow_profile_lookup_over_federation:
raise SynapseError(

View File

@ -619,7 +619,10 @@ class UserDirectoryTestCase(unittest.HomeserverTestCase):
[self.assertIn(user, remote_users) for user in received_user_id_ordering[3:]]
def _add_user_to_room(
self, room_id: str, room_version: RoomVersion, user_id: str,
self,
room_id: str,
room_version: RoomVersion,
user_id: str,
):
# Add a user to the room.
builder = self.event_builder_factory.for_room_version(