Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pylint no longer detects numpy ufunc methods #2885

Closed
wshanks opened this issue Apr 25, 2019 · 3 comments · Fixed by pylint-dev/astroid#732
Closed

pylint no longer detects numpy ufunc methods #2885

wshanks opened this issue Apr 25, 2019 · 3 comments · Fixed by pylint-dev/astroid#732
Assignees
Labels
Bug 🪲 Needs astroid Brain 🧠 Needs a brain tip in astroid (then an astroid upgrade)

Comments

@wshanks
Copy link

wshanks commented Apr 25, 2019

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]

@hippo91
Copy link
Contributor

hippo91 commented Apr 26, 2019

@willsALMANJ thanks for the bug report. I can reproduce it.

@PCManticore PCManticore added Needs astroid Brain 🧠 Needs a brain tip in astroid (then an astroid upgrade) Bug 🪲 labels Apr 29, 2019
@bjtho08
Copy link

bjtho08 commented Sep 20, 2019

Any news on this bug? I am also affected by it. Using --generated-members=numpy.* is not helping and neither is extension-pkg-whitelist=numpy.

@hippo91 hippo91 self-assigned this Sep 21, 2019
@hippo91
Copy link
Contributor

hippo91 commented Sep 22, 2019

@bjtho08 i didn't have time to work on this yet but i will try ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🪲 Needs astroid Brain 🧠 Needs a brain tip in astroid (then an astroid upgrade)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants