-
Notifications
You must be signed in to change notification settings - Fork 17
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
Sphinx prefers escaping the asterisk for *args and **kwargs with a backslash but this confuses pydoclint #92
Comments
Hi, I could not reproduce this issue. Could you double check your code snippet, and can you provide the configs that you used? Thanks! |
Oh, sorry about that! I didn't check that my minimal reproduction still had the error... rookie mistake. It seems there need to be type annotations for this to happen: from typing import Any
def f(*args: Any, **kwargs: Any) -> None:
"""My function.
:param \\*args: Positional args.
:param \\**kwargs: Keyword args.
""" Save this as
gives
|
Thanks for updating the example! I was able to reproduce it, and I made a code change to fix this bug. |
Published as 0.3.8 on PyPI. |
Thank you so much! You made a great tool! |
Given this
sphinx throws a warning:
and this also seems to mess with the formatting a bit.
But when it's escaped with a backslash, it's fine:
However, pydoclint then complains:
So, it seems the backslash confuses pydoclint.
The text was updated successfully, but these errors were encountered: