Added missing type annotations in various stdlib stubs. (#4402)

Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
Eric Traut
2020-08-06 18:27:21 -07:00
committed by GitHub
parent 10a5b070ab
commit baaffed1ac
7 changed files with 43 additions and 42 deletions

View File

@@ -1,3 +1,5 @@
from typing import Any
class Node:
ELEMENT_NODE: int
ATTRIBUTE_NODE: int
@@ -32,7 +34,7 @@ VALIDATION_ERR: int
class DOMException(Exception):
code: int
def __init__(self, *args, **kw) -> None: ...
def __init__(self, *args: Any, **kw: Any) -> None: ...
def _get_code(self) -> int: ...
class IndexSizeErr(DOMException): ...