Use before assignment not detected #1807
Labels
Control flow
Requires control flow understanding
Duplicate 🐫
Duplicate of an already existing issue
Enhancement ✨
Improvement to a component
Steps to reproduce
Check this with Pylint:
Current behavior
Does not warn
b
is used without (very probably) being assigned (more below).Expected behavior
Opinions may vary, still here is mine: I know too many false alerts is at the detriment of alerts in the large. I know there use to be a Borland C++ compiler triggering annoying and noisy warnings when an assignment was conditional, which seems to be a case very close to this one. But there is only one condition, so clearly it can’t cover all cases. The probability
b
is not assigned, is high.pylint --version output
Note
I’m not telling about it as a bug, rather a an hint.
The text was updated successfully, but these errors were encountered: