mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-02 04:48:07 +00:00
[ruff] skip fix for RUF059 if dummy name is already bound (unused-unpacked-variable) (#18509)
This commit is contained in:
parent
a2de81cb27
commit
dc322d23dd
3 changed files with 23 additions and 1 deletions
|
|
@ -94,3 +94,9 @@ def f():
|
|||
(exponential := (exponential * base_multiplier) % 3): i + 1 for i in range(2)
|
||||
}
|
||||
return hash_map
|
||||
|
||||
|
||||
# see: https://github.com/astral-sh/ruff/issues/18507
|
||||
def f(_x):
|
||||
x, = "1"
|
||||
print(_x)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue