Type inline_text in stubs/docutils/docutils/parsers/rst/states.pyi (#14467)

This commit is contained in:
Adam Dangoor
2025-07-27 10:53:57 +01:00
committed by GitHub
parent aebefb1754
commit 082761da7d
@@ -6,6 +6,7 @@ from typing import Any, ClassVar, Final, NoReturn
from typing_extensions import TypeAlias
from docutils import ApplicationError, DataError, nodes
from docutils.nodes import Node, system_message
from docutils.parsers.rst.languages import _RstLanguageModule
from docutils.statemachine import StateMachine, StateMachineWS, StateWS, StringList
from docutils.utils import Reporter
@@ -88,7 +89,7 @@ class RSTState(StateWS[list[str]]):
def title_inconsistent(self, sourcetext: str, lineno: int): ...
def new_subsection(self, title: str, lineno: int, messages) -> None: ...
def paragraph(self, lines: Iterable[str], lineno: int): ...
def inline_text(self, text: str, lineno: int): ...
def inline_text(self, text: str, lineno: int) -> tuple[list[Node], list[system_message]]: ...
def unindent_warning(self, node_name: str): ...
def build_regexp(definition, compile: bool = True): ...