Skip to content

Commit 2adc41c

Browse files
committed
Fix sphinx-doc#9718: intersphinx: Failed to invoke sphinx.ext.intersphinx module
A circular import was happened since sphinx-doc#9701 merged. This goes lazy-import to avoid the error.
1 parent 3aabcd2 commit 2adc41c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sphinx/addnodes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
from docutils import nodes
1414
from docutils.nodes import Element
1515

16-
from sphinx.util import docutils
17-
1816
if TYPE_CHECKING:
1917
from sphinx.application import Sphinx
2018

@@ -530,6 +528,8 @@ class manpage(nodes.Inline, nodes.FixedTextElement):
530528

531529

532530
def setup(app: "Sphinx") -> Dict[str, Any]:
531+
from sphinx.util import docutils # lazy import
532+
533533
app.add_node(toctree)
534534

535535
app.add_node(desc)

0 commit comments

Comments
 (0)