Skip to content

Commit 2c1247a

Browse files
Apply ruff preview rule RUF010
Use explicit conversion flag
1 parent 1c7bbd8 commit 2c1247a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/test_textwrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def test_wrap_wide_char_no_column_overflow():
341341
for line in lines:
342342
display_width = wcwidth.wcswidth(line)
343343
assert display_width <= width, (
344-
f"Line {repr(line)} has display width {display_width} "
344+
f"Line {line!r} has display width {display_width} "
345345
f"which exceeds requested column width {width}"
346346
)
347347

0 commit comments

Comments
 (0)