Crash F0002 AstroidError due to possibly undefined loop variable #9875
Labels
Backported
Crash 💥
A bug that makes pylint crash
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
Milestone
Bug description
If value is defined before the loop, everything is fine. I'd rather expect a "undefined-loop-variable" warning.
Output is as expected:
idx=0 value=1
idx=1 value=2
idx=2 value=3
idx=0 value=2
idx=1 value=1
Configuration
No response
Command used
Pylint output
pylint crashed with a ``AstroidError`` and with the following stacktrace:
Expected behavior
No crash.
Pylint version
OS / Environment
linux (Linux)
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: