-
-
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
cell-var-from-loop (W0640): why #5263
Comments
@Pierre-Sassoulas This actually seems to be a false positive. But this is different because Looking at some of the |
Thank you for taking the time to look into it, I agree with you, let's add a new "good" test case. |
#7100 should probably be done at the same time. |
Here is another example of a false positive:
|
Bug description
I don't see why the code in this example file
https://github.com/PyCQA/pylint/blob/96e84595194073ea54a8c7730b86125049c0f4f9/tests/functional/n/nested_func_defined_in_loop.py#L1-L10
is problematic. When called using
example(range(4))
, it outputswhich looks correct to me. See also sprytnyk/pylint-errors#7
Configuration
No response
Command used
Pylint output
Expected behavior
No error
Pylint version
OS / Environment
OpenSUSE Leap 15.2
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: