[ruff] skip fix for RUF059 if dummy name is already bound (unused-unpacked-variable) (#18509)

This commit is contained in:
chiri 2025-06-11 08:58:05 +03:00 committed by GitHub
parent a2de81cb27
commit dc322d23dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 23 additions and 1 deletions

View file

@ -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)