mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Improve a few types in xml.dom.minidom. (#5923)
* Changes the return type of getDOMImplementation from implicit Any to DOMImplementation | None. * DOMImplementation.createDocument() and createDocumentType() allow None for all arguments.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user