mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Remove KeysView & ItemsView from py2 type hints
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any, AnyStr, Union, IO, Callable, Dict, List, Tuple, Sequence, Iterator, TypeVar, Optional, KeysView, ItemsView, Generator
|
||||
from typing import Any, AnyStr, Union, IO, Callable, Dict, List, Tuple, Sequence, Iterator, TypeVar, Optional, Generator
|
||||
import io
|
||||
|
||||
VERSION = ... # type: str
|
||||
@@ -38,11 +38,11 @@ class Element:
|
||||
def getchildren(self) -> List[Element]: ...
|
||||
def getiterator(self, tag: Union[str, AnyStr]=...) -> List[Element]: ...
|
||||
def insert(self, index: int, element: Element) -> None: ...
|
||||
def items(self) -> ItemsView[AnyStr, AnyStr]: ...
|
||||
def items(self) -> List[Tuple[AnyStr, AnyStr]]: ...
|
||||
def iter(self, tag: Union[str, AnyStr]=...) -> Generator[Element, None, None]: ...
|
||||
def iterfind(self, path: str, namespaces: Dict[str, str]=...) -> List[Element]: ...
|
||||
def itertext(self) -> Generator[str, None, None]: ...
|
||||
def keys(self) -> KeysView[AnyStr]: ...
|
||||
def keys(self) -> List[AnyStr]: ...
|
||||
def makeelement(self, tag: _Ss, attrib: Dict[_Ss, _Ss]) -> Element: ...
|
||||
def remove(self, element: Element) -> None: ...
|
||||
def set(self, key: AnyStr, value: AnyStr) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user