mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:25:17 +00:00
24 lines
362 B
Python
24 lines
362 B
Python
def f(tup):
|
|
x, y = tup
|
|
|
|
|
|
def f():
|
|
x, y = 1, 2 # this triggers F841 as it's just a simple assignment where unpacking isn't needed
|
|
|
|
|
|
def f():
|
|
(x, y) = coords = 1, 2
|
|
if x > 1:
|
|
print(coords)
|
|
|
|
|
|
def f():
|
|
(x, y) = coords = 1, 2
|
|
|
|
|
|
def f():
|
|
coords = (x, y) = 1, 2
|
|
|
|
|
|
def f():
|
|
(a, b) = (x, y) = 1, 2 # this triggers F841 on everything
|