massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2 / StringIO.pyi
1 # Stubs for StringIO (Python 2)\r
2 \r
3 from typing import Any, IO, AnyStr, Iterator, Iterable, Generic, List, Optional\r
4 \r
5 class StringIO(IO[AnyStr], Generic[AnyStr]):\r
6     closed = ...  # type: bool\r
7     softspace = ...  # type: int\r
8     len = ...  # type: int\r
9     name = ...  # type: str\r
10     def __init__(self, buf: AnyStr = ...) -> None: ...\r
11     def __iter__(self) -> Iterator[AnyStr]: ...\r
12     def next(self) -> AnyStr: ...\r
13     def close(self) -> None: ...\r
14     def isatty(self) -> bool: ...\r
15     def seek(self, pos: int, mode: int = ...) -> int: ...\r
16     def tell(self) -> int: ...\r
17     def read(self, n: int = ...) -> AnyStr: ...\r
18     def readline(self, length: int = ...) -> AnyStr: ...\r
19     def readlines(self, sizehint: int = ...) -> List[AnyStr]: ...\r
20     def truncate(self, size: Optional[int] = ...) -> int: ...\r
21     def write(self, s: AnyStr) -> int: ...\r
22     def writelines(self, iterable: Iterable[AnyStr]) -> None: ...\r
23     def flush(self) -> None: ...\r
24     def getvalue(self) -> AnyStr: ...\r
25     def __enter__(self) -> Any: ...\r
26     def __exit__(self, type: Any, value: Any, traceback: Any) -> Any: ...\r
27     def fileno(self) -> int: ...\r
28     def readable(self) -> bool: ...\r
29     def seekable(self) -> bool: ...\r
30     def writable(self) -> bool: ...\r