diff --git a/synapse/handlers/profile.py b/synapse/handlers/profile.py index d933dd3f01..dd59392bda 100644 --- a/synapse/handlers/profile.py +++ b/synapse/handlers/profile.py @@ -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( diff --git a/tests/handlers/test_user_directory.py b/tests/handlers/test_user_directory.py index 8dddc12204..98b2f5b383 100644 --- a/tests/handlers/test_user_directory.py +++ b/tests/handlers/test_user_directory.py @@ -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(