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
WARNING: py:class reference target not found: *tuple[int, str] [ref.class]
In this case the problem is that sphinx.domains.python._annotations._parse_annotation tries to find a cross-reference without first splitting off the star in front. A solution is the inclusion of the following block in the body of the unparse function within that function:
Describe the bug
The simple
emits a warning
The culprit is the absence of a
visit_Starred
method in the classsphinx.pycode.ast._UnparseVisitor
. After fixing that with the inclusion ofa further warning is emitted:
In this case the problem is that
sphinx.domains.python._annotations._parse_annotation
tries to find a cross-reference without first splitting off the star in front. A solution is the inclusion of the following block in the body of theunparse
function within that function:PR to follow.
How to Reproduce
index.rst
:conf.py
:Environment Information
Sphinx extensions
["sphinx.ext.intersphinx"]
Additional context
None.
The text was updated successfully, but these errors were encountered: