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
Fix doc issue where parameters listed twice in description #916
Conversation
…scription * Remove sphinx extension sphinx_autodoc_typehints * Update sphinx pin to version 4.2.0 * Show typehints in both signature and description
To resolve #819. |
Codecov Report
@@ Coverage Diff @@
## master #916 +/- ##
=======================================
Coverage 96.29% 96.29%
=======================================
Files 40 40
Lines 9364 9364
Branches 1101 1101
=======================================
Hits 9017 9017
Misses 204 204
Partials 143 143 📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks fine. Thanks @lorenzncode
Looks good @lorenzncode . One minor point - would it be easy to move self to the top? |
Yes, it's easy to move self to the top. I'll update the PR shortly. |
* Update sphinx pin to version 4.3.0
With docutils 0.16, the result is as expected: Prior result with strikethrough text was using docutils 0.17.1. HTML is Perhaps related to https://docutils.sourceforge.io/HISTORY.html
|
The html (strikethrough) issue was reported by another user as sphinx-doc/sphinx#9872. I will update this PR after sphinx 4.3.1 is released. |
Shall I merge or wait for 4.3.1 @lorenzncode ? |
I'd propose to wait for sphinx 4.3.1. I expect the release soon based on comments in the GH issues and the sphinx 4.3.1 release milestone tracker. I'll watch for the release then update this PR to pin to sphinx 4.3.1. |
Sphinx 4.3.1 is out! The docs look good to me now (other than the known docstring issues mentioned in #922 to be fixed separately). |
Looks like there's a glibc error with Python 3.9 in Azure's Linux runs. |
Yup, will look into this |
I'd like to complete the tasks above before this is merged. |
* autodoc_typehints_format = "short"
This could be a good time for this PR as it will resolve the current Read the Docs build failures (for example see PR #1018). |
@lorenzncode Sounds good. It has two approvals, and all the conversation items have been addressed, so I think it is ready to merge. Do you want to do the honors? |
Thanks for fixing this @lorenzncode |
Fix doc issue where parameters could be listed twice in the method description
Remove sphinx extension sphinx_autodoc_typehints
Update sphinx pin to version 4.2.0
Show typehints in both signature and description