-
- Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
pylint-dev/astroid
#732Labels
Bug 🪲Needs astroid Brain 🧠Needs a brain tip in astroid (then an astroid upgrade)Needs a brain tip in astroid (then an astroid upgrade)
Description
Steps to reproduce
Run pylint on the following file with numpy=1.16.2 in the environment:
import numpy as np np.logical_or.reduce([0, 0, 0]) Current behavior
This error is generated:
E1101: Function 'logical_or' has no 'reduce' member (no-member) Expected behavior
No error.
Notes
It seems like there were some major changes in numpy 1.16.2 which have caused issues like #2839 and #2721. I tried using the version of astroid in this PR which is supposed to address #2721 but I still get the same error: pylint-dev/astroid#664
pylint --version output
pylint 2.3.1
astroid 2.2.5
Python 3.7.3 (default, Mar 27 2019, 22:11:17)
[GCC 7.3.0]
Metadata
Metadata
Assignees
Labels
Bug 🪲Needs astroid Brain 🧠Needs a brain tip in astroid (then an astroid upgrade)Needs a brain tip in astroid (then an astroid upgrade)