ruff: Fix UP032 Use f-string instead of format call.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-08-02 15:28:59 -07:00
committed by Anders Kaseorg
parent ff409342e1
commit e932e2ce52
14 changed files with 51 additions and 75 deletions

View File

@@ -342,7 +342,7 @@ class AddNewUserHistoryTest(ZulipTestCase):
self.assertEqual(
repr(message),
"<Message: recip / / "
"<UserProfile: {} {!r}>>".format(user_profile.email, user_profile.realm),
f"<UserProfile: {user_profile.email} {user_profile.realm!r}>>",
)
user_message = most_recent_usermessage(user_profile)