FURB140
(reimplemented-starmap) does not handle multiple uses of the loop variable
#11810
Labels
bug
Something isn't working
Input code:
Command:
ruff check --isolated --select FURB140 --preview --fix example.py
Resulting code after autofix:
Note how the original generator comprehension had two uses use of the
row
loop variable, but the autofix only replaces one of them with thestarmap
, which breaks the code.Ruff version:
ruff 0.4.8
The text was updated successfully, but these errors were encountered: