useless-type-doc issued for undocumented parameters that have PEP484 type annotations #4593
Labels
Enhancement ✨
Improvement to a component
False Positive 🦟
A message is emitted but nothing is wrong with the code
Milestone
This likely relates to (and solves) issue #4117.
Steps to reproduce
Call pylint with the docparams extension enabled on the following code:
Current behavior
Expected behavior
Pylint should issue no errors.
It would be reasonable for pylint to issue this error if the type information appeared in the docstring, however, pylint is actually responding to the type annotation (as in PEP484). The docparams module should only issue errors in response to docstrings (or lack thereof), and not PEP484 annotations.
pylint --version output
Result of
pylint --version
output:The text was updated successfully, but these errors were encountered: