From 9270a4e5745cc42c90888d4bbd21b8cbc738b6af Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Sun, 27 Jul 2025 07:54:32 +0100 Subject: [PATCH] Type inline_text in stubs/docutils/docutils/parsers/rst/states.pyi --- stubs/docutils/docutils/parsers/rst/states.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stubs/docutils/docutils/parsers/rst/states.pyi b/stubs/docutils/docutils/parsers/rst/states.pyi index 8e657cd3cdad..5c790c3042d6 100644 --- a/stubs/docutils/docutils/parsers/rst/states.pyi +++ b/stubs/docutils/docutils/parsers/rst/states.pyi @@ -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): ... pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy