-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
Autodoc issues: bad ordering, missing hyperlinks, missing type information #6574
Comments
Thank you for reporting.
At present,
It will be hyperlinked if you make a document for
So far, type annotations for variables and properties are not supported. +1 for supporting.
I just posted #6576 to fix this bug. |
Indeed, that would be great. For now at least the documentation should be updated because the way it's described now makes one expect that it applies to all types of entities across the codebase.
You understood my intent correctly, yes. My codebase is organized as a collection of deeply nested submodules containing implementation details. Entities that form the API are exposed to the user through explicit re-exports in As a stop-gap measure, I ended up making a small custom extension that subscribes to |
#6578 will resolve this. I'll merge it soon. Please try it.
There might be many kind of import patterns. So such heuristic process is not good for core. |
This is just great, thank you! The linked branch seems to work just the way it should. Is the fix going to be available in the next release?
I understand, but please observe that a replacement that removes underscored submodules (like
Many similarly organized packages could benefit from Autodoc supporting this heuristic through an option (disabled by default). Are you totally opposed to this, or would it be possible for me to, perhaps, build a stronger case in favor of this optional feature? |
…mports Fix autodoc: autodoc_member_order_does not refer order of imports (refs: #6574)
Fixed by #6578. |
Ah, sorry. #6578 is part of this issue. Reopened. |
Fix autodoc: missing type annotation for variadic and keyword parameters (refs: #6574)
Note:
Fixed by #6578.
Will be discussed at #7493.
Will be discussed at #7383.
Fixed by #6576. |
There appear to be several issues with Autodoc.
Steps to reproduce the behavior:
I have set up an MWE on RTD which you can browse here: https://sphinx-issues-mwe.readthedocs.io; the sources are at https://github.com/pavel-kirienko/sphinx-issues-mwe.
bysource
is ignored by Autodoc.Environment info
The text was updated successfully, but these errors were encountered: