-
-
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
Escaped '*' in docstring leads to missing-param-doc #5815
Comments
My suggesting: Before comparing the arguments, "clean" them somehow (e.g. remove escaping) |
We currently handle Should be fairly trivial to fix this. However, I wonder why this is needed. Do you need to escape the backslash twice? And are there instances where you need to escape it three or four times? Should we just allow an unlimited amount of backslash in front of the |
@DanielNoord If I use a single backslash I need to use "r-strings", else I get:
Therefore you need to use |
Is using |
@DanielNoord I see your point. However, adding r-strings can lead to some issues in corner cases. I don't remember a concrete example but I guess I found one in the past. So, would you be open to accept a PR or do you think everybody should go with r-strings |
Hm, I'm not sure actually. I don't think it hurts to allow |
I agree with @DanielNoord here.
I think we need to know what issues it's causing in what corner case to be able to make a decision. Personally I don't know of any :) Let's keep the discussion open, but as it's hard to prove a negative I'll put this in the 2.14 milestone so we actually close or fix at some point. |
Thanks a lot. So I just added used your fix but it doesn't work. Please note, that I use Google-style. Does the fix only consider sphinx-style docstrings? |
Hmm, I would need to investigate this. That could actually be the case. |
Bug description
If a docstring contains the arguments for
*args
and**kwargs
and RST is used,*
must be escaped.However, the pylint docparams check doesn't like the escape
Configuration
No response
Command used
Pylint output
Expected behavior
Pylint should ignore escaping
Pylint version
OS / Environment
Linux
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: