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

Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit 50e6cba1af)
This commit is contained in:
Anders Kaseorg
2023-07-19 14:06:38 -07:00
committed by Alex Vandiver
parent 2e9544a9a5
commit 8fdcadb08a
7 changed files with 11 additions and 29 deletions

View File

@@ -60,9 +60,7 @@ def get_outbound_message_body(payload: WildValue) -> str:
def get_outbound_reply_body(payload: WildValue) -> str:
link, outbox, inbox, subject = get_message_data(payload)
return "[Outbound reply]({link}) from **{inbox}** to **{outbox}**.".format(
link=link, inbox=inbox, outbox=outbox
)
return f"[Outbound reply]({link}) from **{inbox}** to **{outbox}**."
def get_comment_body(payload: WildValue) -> str:
@@ -78,9 +76,7 @@ def get_conversation_assigned_body(payload: WildValue) -> str:
if source_name == target_name:
return f"**{source_name}** assigned themselves."
return "**{source_name}** assigned **{target_name}**.".format(
source_name=source_name, target_name=target_name
)
return f"**{source_name}** assigned **{target_name}**."
def get_conversation_unassigned_body(payload: WildValue) -> str: