Skip to content

Commit b151aa1

Browse files
committed
Fix nbsphinx implicit imports
1 parent 287ee20 commit b151aa1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sphinx/util/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ def __getattr__(name: str) -> Any:
6262
obj: Callable[..., Any]
6363
mod: ModuleType
6464

65+
if name == 'console':
66+
# Explicit temporary workaround for nbsphinx implicit imports.
67+
# https://github.com/sphinx-doc/sphinx/issues/13352
68+
import sphinx.util.console as mod
69+
70+
return mod
71+
6572
# RemovedInSphinx90Warning
6673
if name == 'split_index_msg':
6774
from sphinx.util.index_entries import split_index_msg as obj

0 commit comments

Comments
 (0)