Skip to content

Commit 66e98d0

Browse files
committed
add 'paragraph' node to docutils
1 parent 2d84e56 commit 66e98d0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

stubs/docutils/docutils/nodes.pyi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ class Element(Node):
104104
def astext(self) -> str: ...
105105
def __getattr__(self, __name: str) -> Incomplete: ...
106106

107+
class TextElement(Element):
108+
child_text_separator: str = ''
109+
107110
class Text(Node, str):
108111
tagname: ClassVar[str]
109112
children: tuple[()]
@@ -130,6 +133,8 @@ class document(Root, Structural, Element):
130133
def astext(self) -> str: ...
131134
def __getattr__(self, __name: str) -> Incomplete: ...
132135

136+
class paragraph(General, TextElement): ...
137+
133138
class NodeVisitor:
134139
def __init__(self, document: document): ...
135140
def __getattr__(self, __name: str) -> Incomplete: ...

0 commit comments

Comments
 (0)