mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 20:02:15 +00:00
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:
committed by
Alex Vandiver
parent
2e9544a9a5
commit
8fdcadb08a
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user