---
source: crates/ruff_linter/src/rules/refurb/mod.rs
snapshot_kind: text
---
FURB105.py:3:1: FURB105 [*] Unnecessary empty string passed to `print`
  |
1 | # Errors.
2 | 
3 | print("")
  | ^^^^^^^^^ FURB105
4 | print("", sep=",")
5 | print("", end="bar")
  |
  = help: Remove empty string

ℹ Safe fix
1 1 | # Errors.
2 2 | 
3   |-print("")
  3 |+print()
4 4 | print("", sep=",")
5 5 | print("", end="bar")
6 6 | print("", sep=",", end="bar")

FURB105.py:4:1: FURB105 [*] Unnecessary empty string and separator passed to `print`
  |
3 | print("")
4 | print("", sep=",")
  | ^^^^^^^^^^^^^^^^^^ FURB105
5 | print("", end="bar")
6 | print("", sep=",", end="bar")
  |
  = help: Remove empty string and separator

ℹ Safe fix
1 1 | # Errors.
2 2 | 
3 3 | print("")
4   |-print("", sep=",")
  4 |+print()
5 5 | print("", end="bar")
6 6 | print("", sep=",", end="bar")
7 7 | print(sep="")

FURB105.py:5:1: FURB105 [*] Unnecessary empty string passed to `print`
  |
3 | print("")
4 | print("", sep=",")
5 | print("", end="bar")
  | ^^^^^^^^^^^^^^^^^^^^ FURB105
6 | print("", sep=",", end="bar")
7 | print(sep="")
  |
  = help: Remove empty string

ℹ Safe fix
2 2 | 
3 3 | print("")
4 4 | print("", sep=",")
5   |-print("", end="bar")
  5 |+print(end="bar")
6 6 | print("", sep=",", end="bar")
7 7 | print(sep="")
8 8 | print("", sep="")

FURB105.py:6:1: FURB105 [*] Unnecessary empty string and separator passed to `print`
  |
4 | print("", sep=",")
5 | print("", end="bar")
6 | print("", sep=",", end="bar")
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FURB105
7 | print(sep="")
8 | print("", sep="")
  |
  = help: Remove empty string and separator

ℹ Safe fix
3 3 | print("")
4 4 | print("", sep=",")
5 5 | print("", end="bar")
6   |-print("", sep=",", end="bar")
  6 |+print(end="bar")
7 7 | print(sep="")
8 8 | print("", sep="")
9 9 | print("", "", sep="")

FURB105.py:7:1: FURB105 [*] Unnecessary separator passed to `print`
  |
5 | print("", end="bar")
6 | print("", sep=",", end="bar")
7 | print(sep="")
  | ^^^^^^^^^^^^^ FURB105
8 | print("", sep="")
9 | print("", "", sep="")
  |
  = help: Remove separator

ℹ Safe fix
4 4 | print("", sep=",")
5 5 | print("", end="bar")
6 6 | print("", sep=",", end="bar")
7   |-print(sep="")
  7 |+print()
8 8 | print("", sep="")
9 9 | print("", "", sep="")
10 10 | print("", "", sep="", end="")

FURB105.py:8:1: FURB105 [*] Unnecessary empty string and separator passed to `print`
   |
 6 | print("", sep=",", end="bar")
 7 | print(sep="")
 8 | print("", sep="")
   | ^^^^^^^^^^^^^^^^^ FURB105
 9 | print("", "", sep="")
10 | print("", "", sep="", end="")
   |
   = help: Remove empty string and separator

ℹ Safe fix
5 5 | print("", end="bar")
6 6 | print("", sep=",", end="bar")
7 7 | print(sep="")
8   |-print("", sep="")
  8 |+print()
9 9 | print("", "", sep="")
10 10 | print("", "", sep="", end="")
11 11 | print("", "", sep="", end="bar")

FURB105.py:9:1: FURB105 [*] Unnecessary empty string and separator passed to `print`
   |
 7 | print(sep="")
 8 | print("", sep="")
 9 | print("", "", sep="")
   | ^^^^^^^^^^^^^^^^^^^^^ FURB105
10 | print("", "", sep="", end="")
11 | print("", "", sep="", end="bar")
   |
   = help: Remove empty string and separator

ℹ Safe fix
6  6  | print("", sep=",", end="bar")
7  7  | print(sep="")
8  8  | print("", sep="")
9     |-print("", "", sep="")
   9  |+print()
10 10 | print("", "", sep="", end="")
11 11 | print("", "", sep="", end="bar")
12 12 | print("", sep="", end="bar")

FURB105.py:10:1: FURB105 [*] Unnecessary empty string and separator passed to `print`
   |
 8 | print("", sep="")
 9 | print("", "", sep="")
10 | print("", "", sep="", end="")
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FURB105
11 | print("", "", sep="", end="bar")
12 | print("", sep="", end="bar")
   |
   = help: Remove empty string and separator

ℹ Safe fix
7  7  | print(sep="")
8  8  | print("", sep="")
9  9  | print("", "", sep="")
10    |-print("", "", sep="", end="")
   10 |+print(end="")
11 11 | print("", "", sep="", end="bar")
12 12 | print("", sep="", end="bar")
13 13 | print(sep="", end="bar")

FURB105.py:11:1: FURB105 [*] Unnecessary empty string and separator passed to `print`
   |
 9 | print("", "", sep="")
10 | print("", "", sep="", end="")
11 | print("", "", sep="", end="bar")
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FURB105
12 | print("", sep="", end="bar")
13 | print(sep="", end="bar")
   |
   = help: Remove empty string and separator

ℹ Safe fix
8  8  | print("", sep="")
9  9  | print("", "", sep="")
10 10 | print("", "", sep="", end="")
11    |-print("", "", sep="", end="bar")
   11 |+print(end="bar")
12 12 | print("", sep="", end="bar")
13 13 | print(sep="", end="bar")
14 14 | print("", "foo", sep="")

FURB105.py:12:1: FURB105 [*] Unnecessary empty string and separator passed to `print`
   |
10 | print("", "", sep="", end="")
11 | print("", "", sep="", end="bar")
12 | print("", sep="", end="bar")
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FURB105
13 | print(sep="", end="bar")
14 | print("", "foo", sep="")
   |
   = help: Remove empty string and separator

ℹ Safe fix
9  9  | print("", "", sep="")
10 10 | print("", "", sep="", end="")
11 11 | print("", "", sep="", end="bar")
12    |-print("", sep="", end="bar")
   12 |+print(end="bar")
13 13 | print(sep="", end="bar")
14 14 | print("", "foo", sep="")
15 15 | print("foo", "", sep="")

FURB105.py:13:1: FURB105 [*] Unnecessary separator passed to `print`
   |
11 | print("", "", sep="", end="bar")
12 | print("", sep="", end="bar")
13 | print(sep="", end="bar")
   | ^^^^^^^^^^^^^^^^^^^^^^^^ FURB105
14 | print("", "foo", sep="")
15 | print("foo", "", sep="")
   |
   = help: Remove separator

ℹ Safe fix
10 10 | print("", "", sep="", end="")
11 11 | print("", "", sep="", end="bar")
12 12 | print("", sep="", end="bar")
13    |-print(sep="", end="bar")
   13 |+print(end="bar")
14 14 | print("", "foo", sep="")
15 15 | print("foo", "", sep="")
16 16 | print("foo", "", "bar", sep="")

FURB105.py:14:1: FURB105 [*] Unnecessary empty string and separator passed to `print`
   |
12 | print("", sep="", end="bar")
13 | print(sep="", end="bar")
14 | print("", "foo", sep="")
   | ^^^^^^^^^^^^^^^^^^^^^^^^ FURB105
15 | print("foo", "", sep="")
16 | print("foo", "", "bar", sep="")
   |
   = help: Remove empty string and separator

ℹ Safe fix
11 11 | print("", "", sep="", end="bar")
12 12 | print("", sep="", end="bar")
13 13 | print(sep="", end="bar")
14    |-print("", "foo", sep="")
   14 |+print("foo")
15 15 | print("foo", "", sep="")
16 16 | print("foo", "", "bar", sep="")
17 17 | print("", *args)

FURB105.py:15:1: FURB105 [*] Unnecessary empty string and separator passed to `print`
   |
13 | print(sep="", end="bar")
14 | print("", "foo", sep="")
15 | print("foo", "", sep="")
   | ^^^^^^^^^^^^^^^^^^^^^^^^ FURB105
16 | print("foo", "", "bar", sep="")
17 | print("", *args)
   |
   = help: Remove empty string and separator

ℹ Safe fix
12 12 | print("", sep="", end="bar")
13 13 | print(sep="", end="bar")
14 14 | print("", "foo", sep="")
15    |-print("foo", "", sep="")
   15 |+print("foo")
16 16 | print("foo", "", "bar", sep="")
17 17 | print("", *args)
18 18 | print("", *args, sep="")

FURB105.py:16:1: FURB105 [*] Unnecessary empty string passed to `print`
   |
14 | print("", "foo", sep="")
15 | print("foo", "", sep="")
16 | print("foo", "", "bar", sep="")
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FURB105
17 | print("", *args)
18 | print("", *args, sep="")
   |
   = help: Remove empty string

ℹ Safe fix
13 13 | print(sep="", end="bar")
14 14 | print("", "foo", sep="")
15 15 | print("foo", "", sep="")
16    |-print("foo", "", "bar", sep="")
   16 |+print("foo", "bar", sep="")
17 17 | print("", *args)
18 18 | print("", *args, sep="")
19 19 | print("", **kwargs)

FURB105.py:18:1: FURB105 [*] Unnecessary empty string passed to `print`
   |
16 | print("foo", "", "bar", sep="")
17 | print("", *args)
18 | print("", *args, sep="")
   | ^^^^^^^^^^^^^^^^^^^^^^^^ FURB105
19 | print("", **kwargs)
20 | print(sep="\t")
   |
   = help: Remove empty string

ℹ Safe fix
15 15 | print("foo", "", sep="")
16 16 | print("foo", "", "bar", sep="")
17 17 | print("", *args)
18    |-print("", *args, sep="")
   18 |+print(*args, sep="")
19 19 | print("", **kwargs)
20 20 | print(sep="\t")
21 21 | print(sep=print(1))

FURB105.py:19:1: FURB105 [*] Unnecessary empty string passed to `print`
   |
17 | print("", *args)
18 | print("", *args, sep="")
19 | print("", **kwargs)
   | ^^^^^^^^^^^^^^^^^^^ FURB105
20 | print(sep="\t")
21 | print(sep=print(1))
   |
   = help: Remove empty string

ℹ Safe fix
16 16 | print("foo", "", "bar", sep="")
17 17 | print("", *args)
18 18 | print("", *args, sep="")
19    |-print("", **kwargs)
   19 |+print(**kwargs)
20 20 | print(sep="\t")
21 21 | print(sep=print(1))
22 22 | 

FURB105.py:20:1: FURB105 [*] Unnecessary separator passed to `print`
   |
18 | print("", *args, sep="")
19 | print("", **kwargs)
20 | print(sep="\t")
   | ^^^^^^^^^^^^^^^ FURB105
21 | print(sep=print(1))
   |
   = help: Remove separator

ℹ Safe fix
17 17 | print("", *args)
18 18 | print("", *args, sep="")
19 19 | print("", **kwargs)
20    |-print(sep="\t")
   20 |+print()
21 21 | print(sep=print(1))
22 22 | 
23 23 | # OK.

FURB105.py:21:1: FURB105 [*] Unnecessary separator passed to `print`
   |
19 | print("", **kwargs)
20 | print(sep="\t")
21 | print(sep=print(1))
   | ^^^^^^^^^^^^^^^^^^^ FURB105
22 | 
23 | # OK.
   |
   = help: Remove separator

ℹ Unsafe fix
18 18 | print("", *args, sep="")
19 19 | print("", **kwargs)
20 20 | print(sep="\t")
21    |-print(sep=print(1))
   21 |+print()
22 22 | 
23 23 | # OK.
24 24 |
