missing-function-docstring / C0116#

Message emitted:

Missing function or method docstring

Description:

Used when a function or method has no docstring. Some special methods like __init__ do not require a docstring.

Correct code:

import sys


def print_python_version():
    """Function printing python version."""
    print(sys.version)

Problematic code:

import sys


def print_python_version():  # [missing-function-docstring]
    print(sys.version)

Created by the basic checker.