When trying to run Pylint on a function with wrong parameter type in docstring, written in Sphinx format, no differing-type-doc (code W9018) is risen when docparams plugin is enabled.
For example, the following code doesn't raise no error:
"""This is module documentation."""
def my_func(some_int: int) -> float:
"""
Some function.
:param some_int: This is a parameter
:type some_int: str
:return: some float
:rtype: float
"""
return some_int + 0.5
Bug description
When trying to run Pylint on a function with wrong parameter type in docstring, written in Sphinx format, no
differing-type-doc
(code W9018) is risen when docparams plugin is enabled.For example, the following code doesn't raise no error:
Configuration
Command used
Pylint output
Expected behavior
differing-type-doc
should be raised on parametersome_int
, because it is anint
variable that was documented asstr
.Pylint version