[minidom] add missing return types (#9917)

This commit is contained in:
Francesc Elies
2023-03-22 12:21:05 +01:00
committed by GitHub
parent ffa4999e31
commit d13bcbb76e

View File

@@ -9,8 +9,10 @@ from xml.sax.xmlreader import XMLReader
_N = TypeVar("_N", bound=Node)
def parse(file: str | SupportsRead[ReadableBuffer | str], parser: XMLReader | None = None, bufsize: int | None = None): ...
def parseString(string: str | ReadableBuffer, parser: XMLReader | None = None): ...
def parse(
file: str | SupportsRead[ReadableBuffer | str], parser: XMLReader | None = None, bufsize: int | None = None
) -> Document: ...
def parseString(string: str | ReadableBuffer, parser: XMLReader | None = None) -> Document: ...
def getDOMImplementation(features=None) -> DOMImplementation | None: ...
class Node(xml.dom.Node):
@@ -28,10 +30,10 @@ class Node(xml.dom.Node):
def localName(self) -> str | None: ...
def __bool__(self) -> Literal[True]: ...
if sys.version_info >= (3, 9):
def toxml(self, encoding: str | None = None, standalone: bool | None = None): ...
def toxml(self, encoding: str | None = None, standalone: bool | None = None) -> str: ...
def toprettyxml(
self, indent: str = "\t", newl: str = "\n", encoding: str | None = None, standalone: bool | None = None
): ...
) -> str: ...
else:
def toxml(self, encoding: str | None = None): ...
def toprettyxml(self, indent: str = "\t", newl: str = "\n", encoding: str | None = None): ...