Open
Description
Description of the modifications
In dev-guide, three extensions are presented in order to improve the documentation when using type hints.
However, in my case (pydpf-core and pydpf-post) the documentation was failing to build when including these extensions (following the appropriate order) in the conf.py file.
Instead, I've seen that other repos (pymapdl, pyfluent) use a different extension named "sphinx_autodoc_typehints", see their documentation. Note that the documentation states that when using this extension in conjunction with sphinx.ext.napoleon, sphinx.ext.napoleon should be loaded first, before sphinx_autodoc_typehints.
This approach seems to work for pydpf-core and pydpf-post.
Useful links and references
- Current dev-guide recomentation on type hints: https://dev.docs.pyansys.com/doc-style/docstrings.html#type-hints
- sphinx_autodoc_typehints documentation: https://pypi.org/project/sphinx-autodoc-typehints/