Skip to content

Commit 81845de

Browse files
potiukephraimbuddy
authored andcommitted
Fix typing issue with new version of types-docutils released` (#40727)
(cherry picked from commit 97b88fd)
1 parent e847879 commit 81845de

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/exts/substitution_extensions.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
from sphinx.transforms.post_transforms.code import HighlightLanguageTransform
2929

3030
if TYPE_CHECKING:
31-
from docutils.utils import SystemMessage
3231
from sphinx.application import Sphinx
3332

3433
LOGGER = logging.getLogger(__name__)
@@ -86,7 +85,7 @@ def condition(node):
8685
node.rawsource = node.astext()
8786

8887

89-
def substitution_code_role(*args, **kwargs) -> tuple[list, list[SystemMessage]]:
88+
def substitution_code_role(*args, **kwargs) -> tuple[list, list[Any]]:
9089
"""Decorate an inline code so that SubstitutionCodeBlockTransform will notice it"""
9190
[node], system_messages = code_role(*args, **kwargs)
9291
node[_SUBSTITUTION_OPTION_NAME] = True # type: ignore[index]

0 commit comments

Comments
 (0)