Skip to content

Commit abbcf2b

Browse files
committed
add 'paragraph' node to docutils
1 parent 9772c42 commit abbcf2b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

stubs/docutils/docutils/nodes.pyi

+5
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ class Element(Node):
107107
def astext(self) -> str: ...
108108
def __getattr__(self, __name: str) -> Incomplete: ...
109109

110+
class TextElement(Element):
111+
def __init__(self, rawsource: str = "", text: str = "", *children, **attributes): ...
112+
110113
class Text(Node, str):
111114
tagname: ClassVar[str]
112115
children: tuple[()]
@@ -135,6 +138,8 @@ class document(Root, Structural, Element):
135138
def astext(self) -> str: ...
136139
def __getattr__(self, __name: str) -> Incomplete: ...
137140

141+
class paragraph(General, TextElement): ...
142+
138143
class NodeVisitor:
139144
def __init__(self, document: document): ...
140145
def __getattr__(self, __name: str) -> Incomplete: ...

0 commit comments

Comments
 (0)