You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The member does not exist because matplotlib.cm does the following to adds its attributes:
# Precache the cmaps with ``lutsize = LUTSIZE``.
# Also add the reversed ones added in the section above:
for cmapname in datad:
cmap_d[cmapname] = _generate_cmap(cmapname, LUTSIZE)
cmap_d.update(cmaps_listed)
locals().update(cmap_d)
This is not something that pylint supports out of the box, and usually we require an astroid brain plugin in order to patch these values for the offending module.
There's also another choice, which is to use --generated-members as in pylint ... --generated-members=coolwarm.
Steps to reproduce
run code, which include
cm.coolwarm
For example
Current behavior
show error
E1101:Module 'matplotlib.cm' has no 'coolwarm' member
Expected behavior
do not show the error
E1101:Module 'matplotlib.cm' has no 'coolwarm' member
pylint --version output
pylint 1.8.2
The text was updated successfully, but these errors were encountered: