-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong behaviour for missing-param-doc test in Pylint 2.12.2 #5472
Comments
This has been changed with #5464 based on discussion in #5406. Although I think it would be good to allow Sorry for updating the syntax so soon after the previous change. We did not find a good explanation of the Sphinx requirements before working on For other stumbling upon this issue: Hope this helps! |
Hi @DanielNoord Thanks for the explanation, I didn't expect such a fast answer. This makes absolute sense now, so I'll fix my whole code base / docstrings now ;) Thanks & have a nice weekend! |
No worries! Hopefully updating doesn't cost you too much time! By the way, you might be interested in sphinx-doc/sphinx#9893 which was opened because of the initial discussion in |
You know Pylint doesn't complain when I use the old-style |
Hmm, that might actually be a false negative! Could you open up a new issue with a minimal code reproducing code example? I could perhaps take a look at it for |
ok 👍 |
After updating pylint to version 2.12.2, packed function arguments need to be documented with a starting asterisk (which in turn has to be escaped in order for Sphinx to recognize it). See pylint-dev/pylint#5472 for reference.
Bug description
When I run Pylint 2.12.2 against a file with
*args
and/or**kwargs
function or method parameters, it will fail.There's currently no way how I can fix the error. I know about the new syntax (i.e.
:param list *args:
instead of:param list args:
), but non of both syntaxes will work! In Pylint 2.12.1 it works, in 2.12.2 it no longer works.The test file is this:
Configuration
https://git.confirm.ch/confirm/development-guidelines/-/blob/master/configs/pylintrc
Command used
Pylint output
Expected behavior
The
missing-param-doc
shouldn't occur.To clarify, this DOESN'T WORK:
But THIS WORKS:
Pylint version
OS / Environment
Tested on: Debian 10 & macOS 10.15
Tested with: Python 3.5 3.6, 3.7, 3.8 & 3.9
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: