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

false no-member: Module 'numpy' has no 'degrees' member #3856

Closed
belm0 opened this issue Sep 23, 2020 · 3 comments · Fixed by pylint-dev/astroid#873 or PennyDreadfulMTG/Penny-Dreadful-Tools#8447
Assignees
Labels
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)

Comments

@belm0
Copy link
Contributor

belm0 commented Sep 23, 2020

Steps to reproduce

import numpy
numpy.degrees(1)

pylint --version output

pylint 2.6.0
astroid 2.4.2
Python 3.7.6 (default, Dec 30 2019, 19:38:36)
[Clang 10.0.0 (clang-1000.11.45.5)]

numpy version: 1.16.4

@belm0
Copy link
Contributor Author

belm0 commented Sep 24, 2020

also seen on same pylint/astroid version, after upgrading to numpy 1.19.2:

E1101: Module 'numpy.random' has no 'random' member (no-member)

@hippo91
Copy link
Contributor

hippo91 commented Sep 24, 2020

@belm0 thanks for the report.

@hippo91 hippo91 self-assigned this Sep 24, 2020
@hippo91 hippo91 added Needs astroid Brain 🧠 Needs a brain tip in astroid (then an astroid upgrade) False Positive 🦟 A message is emitted but nothing is wrong with the code labels Sep 24, 2020
@hippo91
Copy link
Contributor

hippo91 commented Dec 29, 2020

@belmo it's worth noting that starting with version 1.18, due to a modification in numpy and regarding the actual code inside pylint, no no-member message will be emitted anymore for numpy's attribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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)
Projects
None yet
2 participants