---
source: crates/ruff_linter/src/rules/ruff/mod.rs
---
RUF059 [*] Unpacked variable `x` is never used
 --> RUF059_1.py:2:5
  |
1 | def f(tup):
2 |     x, y = tup
  |     ^
  |
help: Prefix it with an underscore or any other dummy variable pattern
  |
1 | def f(tup):
  -     x, y = tup
2 +     _x, y = tup
3 |
  |
note: This is an unsafe fix and may change runtime behavior

RUF059 [*] Unpacked variable `y` is never used
 --> RUF059_1.py:2:8
  |
1 | def f(tup):
2 |     x, y = tup
  |        ^
  |
help: Prefix it with an underscore or any other dummy variable pattern
  |
1 | def f(tup):
  -     x, y = tup
2 +     x, _y = tup
3 |
  |
note: This is an unsafe fix and may change runtime behavior

RUF059 [*] Unpacked variable `y` is never used
  --> RUF059_1.py:10:9
   |
 9 | def f():
10 |     (x, y) = coords = 1, 2
   |         ^
11 |     if x > 1:
12 |         print(coords)
   |
help: Prefix it with an underscore or any other dummy variable pattern
   |
9  | def f():
   -     (x, y) = coords = 1, 2
10 +     (x, _y) = coords = 1, 2
11 |     if x > 1:
   |
note: This is an unsafe fix and may change runtime behavior

RUF059 [*] Unpacked variable `x` is never used
  --> RUF059_1.py:16:6
   |
15 | def f():
16 |     (x, y) = coords = 1, 2
   |      ^
   |
help: Prefix it with an underscore or any other dummy variable pattern
   |
15 | def f():
   -     (x, y) = coords = 1, 2
16 +     (_x, y) = coords = 1, 2
17 |
   |
note: This is an unsafe fix and may change runtime behavior

RUF059 [*] Unpacked variable `y` is never used
  --> RUF059_1.py:16:9
   |
15 | def f():
16 |     (x, y) = coords = 1, 2
   |         ^
   |
help: Prefix it with an underscore or any other dummy variable pattern
   |
15 | def f():
   -     (x, y) = coords = 1, 2
16 +     (x, _y) = coords = 1, 2
17 |
   |
note: This is an unsafe fix and may change runtime behavior

RUF059 [*] Unpacked variable `x` is never used
  --> RUF059_1.py:20:15
   |
19 | def f():
20 |     coords = (x, y) = 1, 2
   |               ^
   |
help: Prefix it with an underscore or any other dummy variable pattern
   |
19 | def f():
   -     coords = (x, y) = 1, 2
20 +     coords = (_x, y) = 1, 2
21 |
   |
note: This is an unsafe fix and may change runtime behavior

RUF059 [*] Unpacked variable `y` is never used
  --> RUF059_1.py:20:18
   |
19 | def f():
20 |     coords = (x, y) = 1, 2
   |                  ^
   |
help: Prefix it with an underscore or any other dummy variable pattern
   |
19 | def f():
   -     coords = (x, y) = 1, 2
20 +     coords = (x, _y) = 1, 2
21 |
   |
note: This is an unsafe fix and may change runtime behavior
