mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
xml.dom.minicompat: complete stub (#5281)
This commit is contained in:
@@ -1,3 +1,17 @@
|
||||
from typing import Any
|
||||
from typing import Any, Iterable, List, Optional, Tuple, Type, TypeVar
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
_T = TypeVar("_T")
|
||||
|
||||
StringTypes: Tuple[Type[str]]
|
||||
|
||||
class NodeList(List[_T]):
|
||||
length: int
|
||||
def item(self, index: int) -> Optional[_T]: ...
|
||||
|
||||
class EmptyNodeList(Tuple[Any, ...]):
|
||||
length: int
|
||||
def item(self, index: int) -> None: ...
|
||||
def __add__(self, other: Iterable[_T]) -> NodeList[_T]: ... # type: ignore
|
||||
def __radd__(self, other: Iterable[_T]) -> NodeList[_T]: ...
|
||||
|
||||
def defproperty(klass: Type[Any], name: str, doc: str) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user