improve io (#194)

* added types to io, some version-specific variants
* remove _io (moved the classes to io)
* remove internal, unused xml.etree._ListDataStream
This commit is contained in:
Valérian Rousset
2016-05-11 19:47:24 +02:00
committed by Guido van Rossum
parent 33fe6a0685
commit 9fdac6e0df
5 changed files with 132 additions and 193 deletions

View File

@@ -74,15 +74,6 @@ class ElementTree:
def register_namespace(prefix: str, uri: str) -> None: ...
def tostring(element: Element, encoding: str=..., method: str=...) -> str: ...
class _ListDataStream(io.BufferedIOBase):
lst = ... # type: List[str]
def __init__(self, lst) -> None: ...
def writable(self) -> bool: ...
def seekable(self) -> bool: ...
def write(self, b: str) -> None: ...
def tell(self) -> int: ...
def tostringlist(element: Element, encoding: str=..., method: str=...) -> List[str]: ...
def dump(elem: Element) -> None: ...
def parse(source: _file_or_filename, parser: 'XMLParser'=...) -> ElementTree: ...