diff options
author | Patrick Cloke <patrickc@matrix.org> | 2021-02-19 08:19:54 -0500 |
---|---|---|
committer | Patrick Cloke <patrickc@matrix.org> | 2021-02-19 08:19:54 -0500 |
commit | c4a55ac4a425f1c98a6f52ffea8b6e00815591be (patch) | |
tree | de76ffd62750b11b7f79425884d0b27bf93562c2 | |
parent | Merge tag 'v1.28.0rc1' into develop (diff) | |
download | synapse-c4a55ac4a425f1c98a6f52ffea8b6e00815591be.tar.xz |
Fix style checking due to updated black.
-rw-r--r-- | synapse/handlers/profile.py | 3 | ||||
-rw-r--r-- | tests/handlers/test_user_directory.py | 5 |
2 files changed, 5 insertions, 3 deletions
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( |