diff --git a/stdlib/xml/dom/minidom.pyi b/stdlib/xml/dom/minidom.pyi index 0c2c5a325..4d1d7a9d0 100644 --- a/stdlib/xml/dom/minidom.pyi +++ b/stdlib/xml/dom/minidom.pyi @@ -7,7 +7,7 @@ from xml.sax.xmlreader import XMLReader def parse(file: str | IO[Any], parser: XMLReader | None = ..., bufsize: int | None = ...): ... def parseString(string: str | bytes, parser: XMLReader | None = ...): ... -def getDOMImplementation(features=...): ... +def getDOMImplementation(features=...) -> DOMImplementation | None: ... class Node(xml.dom.Node): namespaceURI: str | None @@ -246,8 +246,8 @@ class Notation(Identified, Childless, Node): class DOMImplementation(DOMImplementationLS): def hasFeature(self, feature, version) -> bool: ... - def createDocument(self, namespaceURI: str, qualifiedName: str, doctype): ... - def createDocumentType(self, qualifiedName: str, publicId, systemId): ... + def createDocument(self, namespaceURI: str | None, qualifiedName: str | None, doctype): ... + def createDocumentType(self, qualifiedName: str | None, publicId, systemId): ... def getInterface(self, feature): ... class ElementInfo: