Files
typeshed/builtins/2.7/cStringIO.pyi
2015-09-30 09:59:44 -07:00

35 lines
1.2 KiB
Python

# Stubs for cStringIO (Python 2.7)
# Built from https://docs.python.org/2/library/stringio.html
from typing import IO, List, Iterable, Iterator, Any
InputType = ... # type: type
OutputType = ... # type: type
class StringIO(IO[str]):
softspace = ... # type: int
def __init__(self, s: str = None) -> None: ...
def getvalue(self) -> str: ...
def close(self) -> None: ...
@property
def closed(self) -> bool: ...
def fileno(self) -> int: ...
def flush(self) -> None: ...
def isatty(self) -> bool: ...
def read(self, size: int = -1) -> str: ...
def write(self, b: str) -> None: ...
def readable(self) -> bool: ...
def readline(self, size: int = -1) -> str: ...
def readlines(self, hint: int = -1) -> List[str]: ...
def seek(self, offset: int, whence: int = ...) -> None: ...
def seekable(self) -> bool: ...
def tell(self) -> int: ...
def truncate(self, size: int = None) -> int: ...
def writable(self) -> bool: ...
def writelines(self, lines: Iterable[str]) -> None: ...
def next(self) -> str: ...
def __iter__(self) -> Iterator[str]: ...
def __enter__(self) -> Any: ...
def __exit__(self, exc_type: type, exc_val: Any, exc_tb: Any) -> Any: ...