From b96d40a16ca64e26a9c4c212ac35a86b79ff2dbe Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Wed, 24 Jan 2024 14:21:53 +0000 Subject: [PATCH] Add substitution_defs to docutils.nodes.document (#11307) --- stubs/docutils/docutils/nodes.pyi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stubs/docutils/docutils/nodes.pyi b/stubs/docutils/docutils/nodes.pyi index 5239fef95..f48bf79bd 100644 --- a/stubs/docutils/docutils/nodes.pyi +++ b/stubs/docutils/docutils/nodes.pyi @@ -134,9 +134,13 @@ class Structural: ... class Body: ... class General(Body): ... class Root: ... +class PreBibliographic: ... +class Special(Body): ... +class Invisible(PreBibliographic): ... class document(Root, Structural, Element): transformer: Transformer + substitution_defs: dict[str, substitution_definition] def copy(self) -> Self: ... def deepcopy(self) -> Self: ... def pformat(self, indent: str = " ", level: int = 0) -> str: ... @@ -144,6 +148,7 @@ class document(Root, Structural, Element): def __getattr__(self, __name: str) -> Incomplete: ... class paragraph(General, TextElement): ... +class substitution_definition(Special, Invisible, TextElement): ... class NodeVisitor: def __init__(self, document: document): ...