Skip to content

Commit 5673c86

Browse files
committed
Fix ruff check for strings/min_cost_string_conversion.py:143:39
1 parent f488a07 commit 5673c86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

strings/min_cost_string_conversion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def assemble_transformation(ops: list[list[str]], i: int, j: int) -> list[str]:
140140
elif op[0] == "R":
141141
string[i] = op[2]
142142

143-
file.write("%-16s" % ("Replace %c" % op[1] + " with " + str(op[2])))
143+
file.write(f"{'Replace ' + op[1] + ' with ' + str(op[2]):<16}")
144144
file.write("\t\t" + "".join(string))
145145
file.write("\r\n")
146146

0 commit comments

Comments
 (0)