Add a few missing stdlib modules (#4550)

This commit is contained in:
Sebastian Rittau authored and GitHub committed 2020-09-18 11:28:25 -04:00
1 parent 4e88557666
commit fe69ffcb0f
7 files changed
+58

No files matched your search

+2
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
+10
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: ...