You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When documenting type aliases, the docstrings for primitive types are incorrectly ignored, but the docstrings for non-primitive types (e.g., Unions) are being correctly captured.
How to Reproduce
$ git clone https://github.com/cimes-isi/sphinx-type-alias-doc-bug.git
$ cd sphinx-type-alias-doc-bug
$ pip install sphinx
$ cd docs
$ make html
Open docs/build/html/testmod.html and see that the docstrings are not captured for testmod.FieldInt and testmod.FieldInt2.
Expected behavior
The docstrings should be included in the generated documentation.
…nored
Autodoc tried to scan doccomment on the module where the class defined.
But it failed to get it if the class is imported from other module.
This analyzes the target module to obtain the doccomment.
…nored
Autodoc tried to scan doccomment on the module where the class defined.
But it failed to get it if the class is imported from other module.
This analyzes the target module to obtain the doccomment.
Describe the bug
When documenting type aliases, the docstrings for primitive types are incorrectly ignored, but the docstrings for non-primitive types (e.g., Unions) are being correctly captured.
How to Reproduce
Open
docs/build/html/testmod.html
and see that the docstrings are not captured fortestmod.FieldInt
andtestmod.FieldInt2
.Expected behavior
The docstrings should be included in the generated documentation.
Your project
https://github.com/cimes-isi/sphinx-type-alias-doc-bug
Screenshots
OS
MacOS Big Sur
Python version
3.8.2
Sphinx version
4.3.0
Sphinx extensions
sphinx.ext.autodoc
Extra tools
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: