Remove KeysView & ItemsView from py2 type hints

This commit is contained in:
Ismail
2016-03-07 13:08:46 +00:00
parent 69f1810462
commit 28bc685573

View File

@@ -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: ...