-
-
Notifications
You must be signed in to change notification settings - Fork 107
Compatibility with Sphinx.ext.napoleon #15
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
Comments
Personally I have no interest in support Google/Numpy style docstrings. I don't even know what it would take to do what you want. Would you like to share an example? |
There is already a fork for that: sphinx-autodoc-napoleon-typehints |
Ok, sounds like I can close this issue then. |
I've only just looked at this, but it appears that this works perfectly fine with Napoleon, provided that you put |
That much I can do :) |
Thanks! Also since I've noticed I didn't actually specify - the ordering I'm talking about is the |
Yes, I understood. |
For anyone else trying to get this to work with Napoleon, for me, this only works with the napoleon setting:
Otherwise the type hints are removed from the function signature but not added to the docstring. |
I am using this and the type hints are still not added :( |
@cmichelenstrofer Is this still a problem for you? |
@jgarte Ahh, I forget how I solved it but I was able to work around this issue and get the desired behavior. So it's all good. I'm about to go on vacation or I would have looked into it more :) But here is the relevant |
@cmichelenstrofer would you be so kind to post your workaround again? |
@jstet |
The |
PR welcome. |
Napoleon is a Sphinx extension which allow the use of Google / Numpy style docstrings. Currently, it doesn't work well with this extension, it can only strip the type hint from function definition and add the return type.
Is it possible to make it inject the type hint to the argument list in the docs?
The text was updated successfully, but these errors were encountered: