Skip to content
Advertisement

How to remove this warning from VScode python code?

In my python code, I see the following warning all over the place;

Missing function or method docstringpylint(missing-function-docstring)

How do I remove this warning?

I am using VS code v1.64.0, Microsoft Python Extension for Visual Studio Code v2022.0.1786462952.

Advertisement

Answer

From the hints provided in the comments, I managed to find an answer to my question.

Edit settings.json found in .vscode folder.

Add in the following;

{
    "python.linting.pylintArgs": [
        "--disable=C0116",        
    ],    
}

My answer was found thanks to another answer here How do you fix “Missing module docstringpylint(missing-module-docstring)”

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement