From 289c3f79b0ab09a59243150c778c15d5c26a3633 Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Wed, 24 Jan 2024 14:36:18 +0000 Subject: [PATCH] =?UTF-8?q?Add=20type=20stubs=20for=20docutils.nodes.liter?= =?UTF-8?q?al=5Fblock=20and=20docutils.nodes.Fi=E2=80=A6=20(#11308)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stubs/docutils/docutils/nodes.pyi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stubs/docutils/docutils/nodes.pyi b/stubs/docutils/docutils/nodes.pyi index f48bf79bd..efb641930 100644 --- a/stubs/docutils/docutils/nodes.pyi +++ b/stubs/docutils/docutils/nodes.pyi @@ -115,6 +115,9 @@ class Element(Node): class TextElement(Element): def __init__(self, rawsource: str = "", text: str = "", *children: Node, **attributes) -> None: ... +class FixedTextElement(TextElement): + def __init__(self, rawsource: str = "", text: str = "", *children: Node, **attributes) -> None: ... + class Text(Node, str): tagname: ClassVar[str] children: tuple[()] @@ -148,6 +151,7 @@ class document(Root, Structural, Element): def __getattr__(self, __name: str) -> Incomplete: ... class paragraph(General, TextElement): ... +class literal_block(General, FixedTextElement): ... class substitution_definition(Special, Invisible, TextElement): ... class NodeVisitor: