Return value of numpy.bincount misidentified as tuple instead of ndarray #3974
Labels
Astroid
Related to astroid
Bug 🪲
False Positive 🦟
A message is emitted but nothing is wrong with the code
Needs astroid Brain 🧠
Needs a brain tip in astroid (then an astroid upgrade)
Steps to reproduce
test.py
:pylint test.py
Current behavior
Expected behavior
No error, because
numpy.bincount
returns anndarray
(see https://numpy.org/doc/stable/reference/generated/numpy.bincount.html).pylint --version output
pylint 2.6.1-dev1
astroid 2.4.2
Python 3.7.4 (default, Aug 13 2019, 20:35:49)
[GCC 7.3.0]
(I have tested that this error exists at least as far back as pylint 2.4.2 w/ astroid 2.3.1.)
The text was updated successfully, but these errors were encountered: