Add a few missing stdlib modules (#4550)

This commit is contained in:
Sebastian Rittau
2020-09-18 17:28:25 +02:00
committed by GitHub
parent 4e88557666
commit fe69ffcb0f
7 changed files with 58 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
from typing import Any
from .domreg import getDOMImplementation as getDOMImplementation, registerDOMImplementation as registerDOMImplementation
class Node:
ELEMENT_NODE: int
ATTRIBUTE_NODE: int

View File

@@ -0,0 +1,10 @@
from _typeshed.xml import DOMImplementation
from typing import Any, Callable, Dict, Iterable, Optional, Tuple, Union
well_known_implementations: Dict[str, str]
registered: Dict[str, Callable[[], DOMImplementation]]
def registerDOMImplementation(name: str, factory: Callable[[], DOMImplementation]) -> None: ...
def getDOMImplementation(
name: Optional[str] = ..., features: Union[str, Iterable[Tuple[str, Optional[str]]]] = ...
) -> DOMImplementation: ...