You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sphinx-users
Hi all,
I have a question regarding typed annotations that are imported from internal modules. This occurs for projects that put actual implementations in internal modules, and only let public modules import necessary symbols.
However, the type annotation in the document seems pretty messed. For example, in the doc of pytest.Function [1], one of the base classes is documented as "_pytest.nodes.Item". But this object is imported from pytest/__init__.py [2], and the base class should be documented as "pytest.Item" instead of "_pytest.nodes.Item".
I understand autodoc_type_aliases may help, but I would like to ask whether there's a more generic and consistent way to handle all these situations.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sphinx...@googlegroups.com
Hi,
I have a plan to improve documentations for these imported members in
4.x. But I don't have enough time at present. Unfortunatley, there is
no good way to document them better, AFAIK.