W0640 cell-var-from-loop false positive in Generator Comprehension of functions #10055
Labels
False Positive 🦟
A message is emitted but nothing is wrong with the code
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
Bug description
Command used
pylint -sn --disable=C0114 test.py
Pylint output
test.py:1:23: W0640: Cell variable i defined in loop (cell-var-from-loop)
Expected behavior
No W0640, since the generator do generate functions as expected instead of generating
print(9)
for 10 times.Pylint version
The text was updated successfully, but these errors were encountered: