ruff: Fix more of RUF010 Use conversion in f-string.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-06-06 13:07:28 -07:00
parent 92db6eba78
commit b907ad0dcb
5 changed files with 8 additions and 8 deletions

View File

@@ -1065,7 +1065,7 @@ Output:
have decided to send a message to a stream without the sender being
subscribed.
Please do self.subscribe(<user for {sender.full_name}>, {repr(stream_name)}) first.
Please do self.subscribe(<user for {sender.full_name}>, {stream_name!r}) first.
Or choose a stream that the user is already subscribed to:
@@ -1189,7 +1189,7 @@ Output:
if actual_count != count: # nocoverage
print("\nITEMS:\n")
for index, query in enumerate(queries):
print(f"#{index + 1}\nsql: {str(query.sql)}\ntime: {query.time}\n")
print(f"#{index + 1}\nsql: {query.sql}\ntime: {query.time}\n")
print(f"expected count: {count}\nactual count: {actual_count}")
raise AssertionError(
f"""