We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
if False: new_variable = "hello" print new_variable
We have the following error:
Traceback (most recent call last): File "example.py", line 3, in <module> print new_variable NameError: name 'new_variable' is not defined
If we run a pylint to check if this error is detected early we don't have a check for this case.
Emit a check similar to W0631 undefined-loop-variable - Using possibly undefined loop variable 'new_variable' but for the if section.
W0631 undefined-loop-variable - Using possibly undefined loop variable 'new_variable'
if
Latest master sha for astroid and pylint
The text was updated successfully, but these errors were encountered:
Duplicate of #85.
Sorry, something went wrong.
No branches or pull requests
Steps to reproduce
We have the following error:
Current behavior
If we run a pylint to check if this error is detected early we don't have a check for this case.
Expected behavior
Emit a check similar to
W0631 undefined-loop-variable - Using possibly undefined loop variable 'new_variable'
but for theif
section.pylint --version output
Latest master sha for astroid and pylint
The text was updated successfully, but these errors were encountered: