Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions stdlib/xml/dom/minidom.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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): ...
Expand Down