0

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.

rioV8
  • 24,506
  • 3
  • 32
  • 49
user3848207
  • 3,737
  • 17
  • 59
  • 104
  • i suppose this warning is seen in the bottom dock where the `PROBLEMS` are shown in VS Code. that section usually also shows the name of the file the warning is being raised from. I would ask you to check the filename that it shows just above this warning that you are receiving. if it doesn't point to the file that u are editing, its probably not worth your concern. – a_n Feb 07 '22 at 07:01
  • however, if this _does_ cause you hindrance (by not running it at all) in running any of your scripts, there might be a bigger problem with the installation of your linter that you might have to solve.. anything more than this can only be said if u can post a screenshot of the problems section (where you see this warning) of your VS Code – a_n Feb 07 '22 at 07:02
  • 1
    https://stackoverflow.com/questions/65949325/how-do-you-fix-missing-module-docstringpylintmissing-module-docstring – Kingshuk Basak Feb 07 '22 at 07:03

1 Answers1

0

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)"

user3848207
  • 3,737
  • 17
  • 59
  • 104