Add some missing properties to xml.dom.minidom.Node. (#5919)

This commit is contained in:
Rebecca Chen
2021-08-13 12:57:22 -07:00
committed by GitHub
parent e415a7fad8
commit 774da45449

View File

@@ -16,6 +16,12 @@ class Node(xml.dom.Node):
nextSibling: Any
previousSibling: Any
prefix: Any
@property
def firstChild(self) -> Node | None: ...
@property
def lastChild(self) -> Node | None: ...
@property
def localName(self) -> str | None: ...
if sys.version_info >= (3, 9):
def toxml(self, encoding: Any | None = ..., standalone: Any | None = ...): ...
def toprettyxml(self, indent: str = ..., newl: str = ..., encoding: Any | None = ..., standalone: Any | None = ...): ...