mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Add type stubs for docutils.nodes.literal_block and docutils.nodes.Fi… (#11308)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user