pylint-errors

W9018 (differing-type-doc)

:x: Problematic code:

def foo(x, y):
    """A dummy string.

    :param int x: x value.
    :param str y: y value.
    :returns: a result.
    :rtype: int
    """

    return x + y

:heavy_check_mark: Correct code:

def foo(x, y):
    """A dummy string.

    :param int x: x value.
    :param int y: y value.
    :returns: a result.
    :rtype: int
    """

    return x + y

Rationale:

Please check parameter names in type declarations.