pylint E1101:Module 'matplotlib.cm' has no 'hot' member @vscode

https://github.com/pytorch/pytorch/issues/701

Instead of ignoring, you can now do:

[TYPECHECK]

# List of members which are set dynamically and missed by pylint inference
# system, and so shouldn't trigger E1101 when accessed. Python regular
# expressions are accepted.
generated-members=numpy.*,torch.*

Follow the above cue, vscode setting should be

"python.linting.pylintArgs":
        [
            "--generated-members=matplotlib.*, pygame.*",
        ],

猜你喜欢

转载自blog.csdn.net/huigougou/article/details/81293298
今日推荐