diff options
Diffstat (limited to 'sphinx/domains/python.py')
-rw-r--r-- | sphinx/domains/python.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sphinx/domains/python.py b/sphinx/domains/python.py index 40a67f82c..1b5e18cdf 100644 --- a/sphinx/domains/python.py +++ b/sphinx/domains/python.py @@ -1301,6 +1301,10 @@ def builtin_resolver(app: Sphinx, env: BuildEnvironment, return s in typing.__all__ # type: ignore + content = find_pending_xref_condition(node, 'resolved') + if content: + contnode = content.children[0] + if node.get('refdomain') != 'py': return None elif node.get('reftype') in ('class', 'obj') and node.get('reftarget') == 'None': |