xml.dom.minidom: add more missing type annotations to methods on Element (#8355)

This commit is contained in:
Tetsuo Kiso
2022-07-22 00:45:52 +09:00
committed by GitHub
parent eca5549ee1
commit 9fe771f31d

View File

@@ -129,19 +129,19 @@ class Element(Node):
def unlink(self) -> None: ...
def getAttribute(self, attname: str) -> str: ...
def getAttributeNS(self, namespaceURI: str, localName): ...
def setAttribute(self, attname, value) -> None: ...
def setAttribute(self, attname: str, value: str) -> None: ...
def setAttributeNS(self, namespaceURI: str, qualifiedName: str, value) -> None: ...
def getAttributeNode(self, attrname): ...
def getAttributeNode(self, attrname: str): ...
def getAttributeNodeNS(self, namespaceURI: str, localName): ...
def setAttributeNode(self, attr): ...
setAttributeNodeNS: Any
def removeAttribute(self, name) -> None: ...
def removeAttribute(self, name: str) -> None: ...
def removeAttributeNS(self, namespaceURI: str, localName) -> None: ...
def removeAttributeNode(self, node): ...
removeAttributeNodeNS: Any
def hasAttribute(self, name: str) -> bool: ...
def hasAttributeNS(self, namespaceURI: str, localName) -> bool: ...
def getElementsByTagName(self, name): ...
def getElementsByTagName(self, name: str): ...
def getElementsByTagNameNS(self, namespaceURI: str, localName): ...
def writexml(self, writer, indent: str = ..., addindent: str = ..., newl: str = ...) -> None: ...
def hasAttributes(self) -> bool: ...