File: StringIO.pyi

package info (click to toggle)
mypy 0.470-complete-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,864 kB
  • ctags: 3,264
  • sloc: python: 21,838; makefile: 18
file content (30 lines) | stat: -rw-r--r-- 1,217 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Stubs for StringIO (Python 2)

from typing import Any, IO, AnyStr, Iterator, Iterable, Generic, List

class StringIO(IO[AnyStr], Generic[AnyStr]):
    closed = ...  # type: bool
    softspace = ...  # type: int
    len = ...  # type: int
    name = ...  # type: str
    def __init__(self, buf: AnyStr = ...) -> None: ...
    def __iter__(self) -> Iterator[AnyStr]: ...
    def next(self) -> AnyStr: ...
    def close(self) -> None: ...
    def isatty(self) -> bool: ...
    def seek(self, pos: int, mode: int = ...) -> None: ...
    def tell(self) -> int: ...
    def read(self, n: int = ...) -> AnyStr: ...
    def readline(self, length: int = ...) -> AnyStr: ...
    def readlines(self, sizehint: int = ...) -> List[AnyStr]: ...
    def truncate(self, size: int = ...) -> int: ...
    def write(self, s: AnyStr) -> None: ...
    def writelines(self, iterable: Iterable[AnyStr]) -> None: ...
    def flush(self) -> None: ...
    def getvalue(self) -> AnyStr: ...
    def __enter__(self) -> Any: ...
    def __exit__(self, type: Any, value: Any, traceback: Any) -> Any: ...
    def fileno(self) -> int: ...
    def readable(self) -> bool: ...
    def seekable(self) -> bool: ...
    def writable(self) -> bool: ...