How do I get PyLint to recognize numpy members?

前端 未结 22 1136
南旧
南旧 2020-11-28 20:29

I am running PyLint on a Python project. PyLint makes many complaints about being unable to find numpy members. How can I avoid this while avoiding skipping membership check

22条回答
  •  不知归路
    2020-11-28 20:51

    If using Visual Studio Code with Don Jayamanne's excellent Python extension, add a user setting to whitelist numpy:

    {
        // whitelist numpy to remove lint errors
        "python.linting.pylintArgs": [
            "--extension-pkg-whitelist=numpy"
        ]
    }
    

提交回复
热议问题