Format: application/octet-stream
1 from typing import IO, Any, AnyStr, Generic, Iterable, Iterator, List, Optional
2
3 class StringIO(IO[AnyStr], Generic[AnyStr]):
4 closed: bool
5 softspace: int
6 len: int
7 name: str
8 def __init__(self, buf: AnyStr = ...) -> None: ...
9 def __iter__(self) -> Iterator[AnyStr]: ...
10 def next(self) -> AnyStr: ...
11 def close(self) -> None: ...
12 def isatty(self) -> bool: ...
13 def seek(self, pos: int, mode: int = ...) -> int: ...
14 def tell(self) -> int: ...
15 def read(self, n: int = ...) -> AnyStr: ...
16 def readline(self, length: int = ...) -> AnyStr: ...
17 def readlines(self, sizehint: int = ...) -> List[AnyStr]: ...
18 def truncate(self, size: Optional[int] = ...) -> int: ...
19 def write(self, s: AnyStr) -> int: ...
20 def writelines(self, iterable: Iterable[AnyStr]) -> None: ...
21 def flush(self) -> None: ...
22 def getvalue(self) -> AnyStr: ...
23 def __enter__(self) -> Any: ...
24 def __exit__(self, type: Any, value: Any, traceback: Any) -> Any: ...
25 def fileno(self) -> int: ...
26 def readable(self) -> bool: ...
27 def seekable(self) -> bool: ...
28 def writable(self) -> bool: ...
29