-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
False positive undefined-loop-variable with pylint 2.5.3 #3711
Closed
Labels
Comments
I am seeing a similar issue here: lst = []
lst2 = [1, 2, 3]
for item in lst:
pass
bigger = [
[
x for x in lst2 if x > item
]
for item in lst
] pylint complains:
Removing the first |
2 tasks
Pierre-Sassoulas
added a commit
to Pierre-Sassoulas/pylint
that referenced
this issue
Jul 19, 2021
Regression tests for pylint-dev#3711
Pierre-Sassoulas
added a commit
to Pierre-Sassoulas/pylint
that referenced
this issue
Jul 19, 2021
Regression tests for pylint-dev#3711 Require pylint-dev/astroid#1102 to be merged.
Pierre-Sassoulas
added a commit
that referenced
this issue
Jul 19, 2021
Regression tests for #3711 Require pylint-dev/astroid#1102 to be merged.
2 tasks
Pierre-Sassoulas
added a commit
to Pierre-Sassoulas/pylint
that referenced
this issue
Jul 30, 2021
Pierre-Sassoulas
added a commit
to Pierre-Sassoulas/pylint
that referenced
this issue
Jul 30, 2021
Pierre-Sassoulas
added a commit
to Pierre-Sassoulas/pylint
that referenced
this issue
Jul 31, 2021
Pierre-Sassoulas
added a commit
to Pierre-Sassoulas/pylint
that referenced
this issue
Aug 1, 2021
Pierre-Sassoulas
added a commit
to Pierre-Sassoulas/pylint
that referenced
this issue
Aug 3, 2021
Pierre-Sassoulas
added a commit
to Pierre-Sassoulas/pylint
that referenced
this issue
Aug 4, 2021
Pierre-Sassoulas
added a commit
that referenced
this issue
Aug 4, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce
false-positive.py
python3 -m pylint --disable=all --enable=undefined-loop-variable false-positive.py
Current behavior
This prints:
Expected behavior
No
undefined-loop-variable
violations.pylint --version output
The text was updated successfully, but these errors were encountered: