Skip to content

Commit fb62cca

Browse files
Kevin KirscheAlexWaygoodpre-commit-ci[bot]
authored
Add missing annotations for xml.dom.minidom.DOMImplementation (#8556)
Co-authored-by: Alex Waygood <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent c6d34cc commit fb62cca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stdlib/xml/dom/minidom.pyi

+4-4
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,10 @@ class Notation(Identified, Childless, Node):
265265
def __init__(self, name, publicId, systemId) -> None: ...
266266

267267
class DOMImplementation(DOMImplementationLS):
268-
def hasFeature(self, feature, version) -> bool: ...
269-
def createDocument(self, namespaceURI: str | None, qualifiedName: str | None, doctype): ...
270-
def createDocumentType(self, qualifiedName: str | None, publicId, systemId): ...
271-
def getInterface(self, feature): ...
268+
def hasFeature(self, feature: str, version: str | None) -> bool: ...
269+
def createDocument(self, namespaceURI: str | None, qualifiedName: str | None, doctype: DocumentType | None) -> Document: ...
270+
def createDocumentType(self, qualifiedName: str | None, publicId: str, systemId: str) -> DocumentType: ...
271+
def getInterface(self: Self, feature: str) -> Self | None: ...
272272

273273
class ElementInfo:
274274
tagName: Any

0 commit comments

Comments
 (0)