Skip to content

Commit 082761d

Browse files
Type inline_text in stubs/docutils/docutils/parsers/rst/states.pyi (#14467)
1 parent aebefb1 commit 082761d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stubs/docutils/docutils/parsers/rst/states.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ from typing import Any, ClassVar, Final, NoReturn
66
from typing_extensions import TypeAlias
77

88
from docutils import ApplicationError, DataError, nodes
9+
from docutils.nodes import Node, system_message
910
from docutils.parsers.rst.languages import _RstLanguageModule
1011
from docutils.statemachine import StateMachine, StateMachineWS, StateWS, StringList
1112
from docutils.utils import Reporter
@@ -88,7 +89,7 @@ class RSTState(StateWS[list[str]]):
8889
def title_inconsistent(self, sourcetext: str, lineno: int): ...
8990
def new_subsection(self, title: str, lineno: int, messages) -> None: ...
9091
def paragraph(self, lines: Iterable[str], lineno: int): ...
91-
def inline_text(self, text: str, lineno: int): ...
92+
def inline_text(self, text: str, lineno: int) -> tuple[list[Node], list[system_message]]: ...
9293
def unindent_warning(self, node_name: str): ...
9394

9495
def build_regexp(definition, compile: bool = True): ...

0 commit comments

Comments
 (0)