You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
astroid incorrectly assumes statement inclusion based on statement exclusion (currently there exist only function are_exclusive).
A new function determining statement inclusion should be added. All places where function are_exclusive is used should be reviewed, and if required, a new function should be used.
Detailed information in #2023 (comment)
The text was updated successfully, but these errors were encountered:
Steps to reproduce
include_error.py
:pylint ./include_error.py
Current behavior
No error in Pylint, but there is a runtime error.
Expected behavior
Pylint should show warning (ex.
undefined-variable
), because there is a possible execution path whereval_2
is not defined.python -c "from astroid import __pkginfo__; print(__pkginfo__.version)"
outputAdditional information
astroid
incorrectly assumes statement inclusion based on statement exclusion (currently there exist only functionare_exclusive
).A new function determining statement inclusion should be added. All places where function
are_exclusive
is used should be reviewed, and if required, a new function should be used.Detailed information in #2023 (comment)
The text was updated successfully, but these errors were encountered: