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

Regression: False positive I1101(c-extension-no-member) for np.finfo(np.float64).resolution #5831

Open
sam-s opened this issue Feb 22, 2022 · 1 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)

Comments

@sam-s
Copy link

sam-s commented Feb 22, 2022

Bug description

See finfo:

"https://github.com/PyCQA/pylint/issues/5831"
import numpy as np
print(np.finfo(np.float64).resolution)

Configuration

extension-pkg-allow-list=numpy

Command used

pylint z.py

Pylint output

************* Module z
z.py:3: [E1101(no-member), ] Instance of 'finfo' has no 'resolution' member

Expected behavior

no diagnostics

Pylint version

pylint 2.12.2
astroid 2.9.3
Python 3.9.10 (main, Jan 15 2022, 11:48:00) 
[Clang 13.0.0 (clang-1300.0.29.3)]

OS / Environment

mac os

Additional dependencies

numpy==1.22.2

@sam-s sam-s added the Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling label Feb 22, 2022
@sam-s
Copy link
Author

sam-s commented Feb 22, 2022

Also reported in #5081 (comment)

@Pierre-Sassoulas Pierre-Sassoulas 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 and removed Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling labels Feb 23, 2022
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
Development

No branches or pull requests

2 participants