Add type stubs for docutils.nodes.literal_block and docutils.nodes.Fi… (#11308)

This commit is contained in:
Adam Dangoor
2024-01-24 14:36:18 +00:00
committed by GitHub
parent b96d40a16c
commit 289c3f79b0

View File

@@ -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: