-
-
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
W9006: missing-raises-doc false positive when declaring multiple exceptions in SphinxDocstring #2729
Comments
Thanks for reporting the issue @StephenBrown2 This could definitely be supported. |
Hi, I'd like to take this up! |
Hey @gaurikholkar Sure thing! @StephenBrown2 left some indications regarding what needs to be modified and where. Let me know if there's anything else you might need before tackling this issue. |
hi @PCManticore, got a little busy with work. Will try to get this done in a day or two! |
Hi - any update on this really slightly annoying issue @gaurikholkar? If not I would spend some time trying to fix it - it is in my way :-) |
@sebastianmika giving it a try now |
@StephenBrown2, I'm unsure about the regex pattern here. Could you maybe give me pointers regarding the same? Should the expression here
be
|
That's about where I got stuck too. I believe that would probably work or at least be a good start. I would say to try by writing a test case using the Steps to Reproduce in the OP, and tweak until it passes. Sorry I can't be of more help with that! |
Steps to reproduce
Using
load-plugins=pylint.extensions.docparams
:raises TypeError, ValueError, ValidationError
Full test file:
Current behavior
Expected behavior
pylint passes / Your code has been rated at 10.00/10
pylint --version output
Notes
Sphinx properly parses the Exception types raised and links them individually, so I believe only a small change would be needed in the regex here and parsing of such here to allow for comma+whitespace
(, *)
separated types.The text was updated successfully, but these errors were encountered: