mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
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:
committed by
Guido van Rossum
parent
33fe6a0685
commit
9fdac6e0df
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user