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
[<Const.NoneType l.1845 at 0x13c61e1a0>, <Const.NoneType l.1812 at 0x12bd4ebc0>, Uninferable, <Instance of django.forms.widgets.Widget at 0x5736910848>]
In the pylint primer,
django
andmusic21
have nothing to do with each other, other than being located underpylint/tests/.pylint_primer_tests
.When inferring L3688 of music21/pitch.py, astroid produces an inference result showing pollution from
django
:Steps to reproduce
used-before-assignment
for variables only defined under always false tests pylint#6677Current behavior
[<Const.NoneType l.1845 at 0x13c61e1a0>, <Const.NoneType l.1812 at 0x12bd4ebc0>, Uninferable, <Instance of django.forms.widgets.Widget at 0x5736910848>]
Expected behavior
no django instances
python -c "from astroid import __pkginfo__; print(__pkginfo__.version)"
outputpylint 2.16.0-dev
astroid 2.12.12
Python 3.10.1 (v3.10.1:2cd268a3a9, Dec 6 2021, 14:28:59) [Clang 13.0.0 (clang-1300.0.29.3)]
More information
See pylint primer result: pylint-dev/pylint#6677 (comment)
The text was updated successfully, but these errors were encountered: