1 # See the README.md file in this directory for more information.
4 from typing_extensions import Protocol
6 # As defined https://docs.python.org/3/library/xml.dom.html#domimplementation-objects
7 class DOMImplementation(Protocol):
8 def hasFeature(self, feature: str, version: str | None) -> bool: ...
9 def createDocument(self, namespaceUri: str, qualifiedName: str, doctype: Any | None) -> Any: ...
10 def createDocumentType(self, qualifiedName: str, publicId: str, systemId: str) -> Any: ...