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 positive: no-member when importing from matplotlib.cm #9425

Open
Teagum opened this issue Feb 9, 2024 · 0 comments
Open

false positive: no-member when importing from matplotlib.cm #9425

Teagum opened this issue Feb 9, 2024 · 0 comments
Labels
Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling

Comments

@Teagum
Copy link

Teagum commented Feb 9, 2024

Bug description

import matplotlib as mpl

x = mpl.cm.viridis(1)

Configuration

[MAIN]
extension-pkg-allow-list=matplotlib.cm
unsafe-load-any-extension=yes

[MESSAGES CONTROL]
disable=missing-docstring
enable=no-member


[TYPECHECK]
generated-members=matplotlib.cm.viridis

Command used

pylint a.py

Pylint output

************* Module a
a.py:3:4: E1101: Module 'matplotlib.cm' has no 'viridis' member (no-member)

Expected behavior

No error

Pylint version

pylint 3.0.3
astroid 3.0.2
Python 3.12.0 (main, Nov 10 2023, 13:07:45) [GCC 12.2.0]

OS / Environment

No response

Additional dependencies

matplotlib==3.8.2
@Teagum Teagum added the Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling label Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling
Projects
None yet
Development

No branches or pull requests

1 participant