Variable not defined depending on conditionals #3229
Labels
C: undefined-variable
Issues related to 'undefined-variable' check
Control flow
Requires control flow understanding
Duplicate 🐫
Duplicate of an already existing issue
Enhancement ✨
Improvement to a component
Is your feature request related to a problem? Please describe
Consider the following buggy code. Running it will result in an error "NameError: name 'false_var' is not defined". However, pylint 2.4.3 doesn't catch the undefined variable problem.
Describe the solution you'd like
I would like pylint to warn about the undefined variable false_var
The text was updated successfully, but these errors were encountered: