Make forward references strings

This commit is contained in:
Ismail
2016-03-09 11:58:24 +00:00
parent d21c09919d
commit 8d893cfae8
11 changed files with 150 additions and 150 deletions

View File

@@ -16,28 +16,28 @@ class _ElementInterface:
attrib = ... # type: Dict[_str_or_bytes, _str_or_bytes]
text = ... # type: Optional[_str_or_bytes]
tail = ... # type: Optional[_str_or_bytes]
def __init__(self, tag: Union[AnyStr, Callable[..., _ElementInterface]], attrib: Dict[AnyStr, AnyStr]) -> None: ...
def makeelement(self, tag: _Ss, attrib: Dict[_Ss, _Ss]) -> _ElementInterface: ...
def __init__(self, tag: Union[AnyStr, Callable[..., '_ElementInterface']], attrib: Dict[AnyStr, AnyStr]) -> None: ...
def makeelement(self, tag: _Ss, attrib: Dict[_Ss, _Ss]) -> '_ElementInterface': ...
def __len__(self) -> int: ...
def __getitem__(self, index: int) -> _ElementInterface: ...
def __setitem__(self, index: int, element: _ElementInterface) -> None: ...
def __getitem__(self, index: int) -> '_ElementInterface': ...
def __setitem__(self, index: int, element: '_ElementInterface') -> None: ...
def __delitem__(self, index: int) -> None: ...
def __getslice__(self, start: int, stop: int) -> Sequence[_ElementInterface]: ...
def __setslice__(self, start: int, stop: int, elements: Sequence[_ElementInterface]) -> None: ...
def __getslice__(self, start: int, stop: int) -> Sequence['_ElementInterface']: ...
def __setslice__(self, start: int, stop: int, elements: Sequence['_ElementInterface']) -> None: ...
def __delslice__(self, start: int, stop: int) -> None: ...
def append(self, element: _ElementInterface) -> None: ...
def insert(self, index: int, element: _ElementInterface) -> None: ...
def remove(self, element: _ElementInterface) -> None: ...
def getchildren(self) -> List[_ElementInterface]: ...
def find(self, path: str) -> Optional[_ElementInterface]: ...
def append(self, element: '_ElementInterface') -> None: ...
def insert(self, index: int, element: '_ElementInterface') -> None: ...
def remove(self, element: '_ElementInterface') -> None: ...
def getchildren(self) -> List['_ElementInterface']: ...
def find(self, path: str) -> Optional['_ElementInterface']: ...
def findtext(self, path: str, default: _T=...) -> Union[str, _T]: ...
def findall(self, path: str) -> List[_ElementInterface]: ...
def findall(self, path: str) -> List['_ElementInterface']: ...
def clear(self) -> None: ...
def get(self, key: AnyStr, default: _T=...) -> Union[AnyStr, _T]: ...
def set(self, key: AnyStr, value: AnyStr) -> None: ...
def keys(self) -> KeysView[AnyStr]: ...
def items(self) -> ItemsView[AnyStr, AnyStr]: ...
def getiterator(self, tag: Union[str, AnyStr]=...) -> List[_ElementInterface]: ...
def getiterator(self, tag: Union[str, AnyStr]=...) -> List['_ElementInterface']: ...
def Element(tag: Union[AnyStr, Callable[..., _ElementInterface]], attrib: Dict[AnyStr, AnyStr]=..., **extra: Dict[str, AnyStr]) -> _ElementInterface: ...
def SubElement(parent: _ElementInterface, tag: AnyStr, attrib: Dict[AnyStr, AnyStr]=..., **extra: Dict[str, AnyStr]) -> _ElementInterface: ...
@@ -56,7 +56,7 @@ _file_or_filename = Union[str, bytes, int, IO[Any]]
class ElementTree:
def __init__(self, element: _ElementInterface=..., file: _file_or_filename=...) -> None: ...
def getroot(self) -> _ElementInterface: ...
def parse(self, source: _file_or_filename, parser: XMLTreeBuilder=...) -> _ElementInterface: ...
def parse(self, source: _file_or_filename, parser: 'XMLTreeBuilder'=...) -> _ElementInterface: ...
def getiterator(self, tag: Union[str, AnyStr]=...) -> List[_ElementInterface]: ...
def find(self, path: str) -> Optional[_ElementInterface]: ...
def findtext(self, path: str, default: _T=...) -> Union[_T, str]: ...
@@ -66,7 +66,7 @@ class ElementTree:
def iselement(element: _ElementInterface) -> bool: ...
def dump(elem: _ElementInterface) -> None: ...
def fixtag(tag: Union[str, QName], namespaces: Dict[str, str]) -> Tuple[str, Optional[str]]: ...
def parse(source: _file_or_filename, parser: XMLTreeBuilder=...) -> ElementTree: ...
def parse(source: _file_or_filename, parser: 'XMLTreeBuilder'=...) -> ElementTree: ...
class iterparse: