Skip to content

FURB105 [*] Unnecessary separator passed to print #8078

@SHEscher

Description

@SHEscher

Hi, there seems to be a mismatch:

# print each element of a list to a new line
print(*a_list_with_elements, sep="\n")
ruff . --select FURB105  --preview
# out: ... FURB105 [*] Unnecessary separator passed to `print`

However, FURB105 apparently checks for empty prints:

ruff rule FURB105
# out: Checks for `print` calls with an empty string as the only positional ...

Version ruff 0.1.1

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions