useless-type-doc / W9020ΒΆ

Message emitted:

"%s" useless ignored parameter type documentation

Description:

Please remove the ignored parameter type documentation.

Problematic code:

def print_fruit(fruit, _):  # [useless-type-doc]
    """docstring ...

    Args:
        fruit (str): A fruit.
        _ (float): Another argument.
    """
    print(fruit)

Correct code:

def print_fruit(fruit):
    """docstring ...

    Args:
        fruit (str): A fruit.
    """
    print(fruit)

Configuration file:

[MAIN]
load-plugins=pylint.extensions.docparams,

Note

This message is emitted by the optional 'parameter_documentation' checker, which requires the pylint.extensions.docparams plugin to be loaded.

Created by the parameter_documentation checker.