Skip to content

Commit 26452a7

Browse files
Add docutils.nodes.system_message and .BackLinkable
Add stubs for docutils.nodes.system_message and docutils.nodes.BackLinkable
1 parent ce45bc3 commit 26452a7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

stubs/docutils/docutils/nodes.pyi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ class TextElement(Element):
118118
class FixedTextElement(TextElement):
119119
def __init__(self, rawsource: str = "", text: str = "", *children: Node, **attributes) -> None: ...
120120

121+
class BackLinkable:
122+
def add_backref(self, refid: str) -> None: ...
123+
121124
class Text(Node, str):
122125
tagname: ClassVar[str]
123126
children: tuple[()]
@@ -156,6 +159,10 @@ class literal_block(General, FixedTextElement): ...
156159
class substitution_definition(Special, Invisible, TextElement): ...
157160
class raw(Special, Inline, PreBibliographic, FixedTextElement): ...
158161

162+
class system_message(Special, BackLinkable, PreBibliographic, Element):
163+
def __init__(self, message: str | None = None, *children: Node, **attributes) -> None: ...
164+
def astext(self) -> str: ...
165+
159166
class NodeVisitor:
160167
def __init__(self, document: document): ...
161168
def __getattr__(self, __name: str) -> Incomplete: ...

0 commit comments

Comments
 (0)