Skip to content

print-empty-string (FURB105)#

Derived from the refurb linter.

Fix is sometimes available.

This rule is unstable and in preview. The --preview flag is required for use.

What it does#

Checks for print calls with unnecessary empty strings as positional arguments and unnecessary sep keyword arguments.

Why is this bad?#

Prefer calling print without any positional arguments, which is equivalent and more concise.

Similarly, when printing one or fewer items, the sep keyword argument, (used to define the string that separates the print arguments) can be omitted, as it's redundant when there are no items to separate.



Use instead: