numpy.ma.masked_where()
return object not recognized as numpy.ma.MaskedArray
#3342
Labels
Bug 🪲
Needs astroid Brain 🧠
Needs a brain tip in astroid (then an astroid upgrade)
Needs astroid update
Needs an astroid update (probably a release too) before being mergable
Milestone
Steps to reproduce
Consider this short python script:
With output:
Running pylint on that code returns:
Current behavior
The object returned by
numpy.ma.masked_where()
is an instance ofnumpy.ma.MaskedArray
, just as the object returned bynumpy.ma.array()
is. However, pylint does not recognize the return value ofnumpy.ma.masked_where()
as such.Expected behavior
Pylint should recognize that
numpy.ma.masked_where()
returns anumpy.ma.MaskedArray
.pylint --version output
The text was updated successfully, but these errors were encountered: