mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-12 05:01:40 +08:00
Added missing type annotations in various stdlib stubs. (#4402)
Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user