massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / paramiko / paramiko / file.pyi
1 from typing import Any, AnyStr, Generic, Iterable, Tuple
2
3 from paramiko.util import ClosingContextManager
4
5 class BufferedFile(ClosingContextManager, Generic[AnyStr]):
6     SEEK_SET: int
7     SEEK_CUR: int
8     SEEK_END: int
9
10     FLAG_READ: int
11     FLAG_WRITE: int
12     FLAG_APPEND: int
13     FLAG_BINARY: int
14     FLAG_BUFFERED: int
15     FLAG_LINE_BUFFERED: int
16     FLAG_UNIVERSAL_NEWLINE: int
17
18     newlines: None | AnyStr | Tuple[AnyStr, ...]
19     def __init__(self) -> None: ...
20     def __del__(self) -> None: ...
21     def __iter__(self) -> BufferedFile[Any]: ...
22     def close(self) -> None: ...
23     def flush(self) -> None: ...
24     def __next__(self) -> AnyStr: ...
25     def readable(self) -> bool: ...
26     def writable(self) -> bool: ...
27     def seekable(self) -> bool: ...
28     def readinto(self, buff: bytearray) -> int: ...
29     def read(self, size: int | None = ...) -> bytes: ...
30     def readline(self, size: int | None = ...) -> AnyStr: ...
31     def readlines(self, sizehint: int | None = ...) -> list[AnyStr]: ...
32     def seek(self, offset: int, whence: int = ...) -> None: ...
33     def tell(self) -> int: ...
34     def write(self, data: AnyStr) -> None: ...
35     def writelines(self, sequence: Iterable[AnyStr]) -> None: ...
36     def xreadlines(self) -> BufferedFile[Any]: ...
37     @property
38     def closed(self) -> bool: ...