How do I get Pylint to recognize NumPy members?

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"
    ]
}

Leave a Comment