summaryrefslogtreecommitdiff
path: root/sphinx/domains/python.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2021-05-20 02:10:43 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2021-05-22 15:34:30 +0900
commit5a8dec457a755ec95eb807b7dc483c8628e64103 (patch)
treecdced7925a9411d081da502618ce21b5408eb67e /sphinx/domains/python.py
parentd2d2d7bde350fd5d8dc696cb0eb68e2bc05387ec (diff)
downloadsphinx-git-5a8dec457a755ec95eb807b7dc483c8628e64103.tar.gz
refactor: reduce calls of find_pending_xref_conditions (refs: #9240)
After #9246, `find_pending_xref_conditions()` should be only called from intended modules. At present, the Python Domain is the only module to call it intendedly. Therefore, this removes the needless calls of the utility function from "unintended" modules.
Diffstat (limited to 'sphinx/domains/python.py')
-rw-r--r--sphinx/domains/python.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/sphinx/domains/python.py b/sphinx/domains/python.py
index 7d39d80ed..2a66f0724 100644
--- a/sphinx/domains/python.py
+++ b/sphinx/domains/python.py
@@ -1363,10 +1363,6 @@ 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] # type: ignore
-
if node.get('refdomain') != 'py':
return None
elif node.get('reftype') in ('class', 'obj') and node.get('reftarget') == 'None':