massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / paramiko / paramiko / sftp_file.pyi
1 from typing import Any, Iterator, Sequence
2
3 from paramiko.file import BufferedFile
4 from paramiko.sftp_attr import SFTPAttributes
5 from paramiko.sftp_client import SFTPClient
6 from paramiko.sftp_handle import SFTPHandle
7
8 class SFTPFile(BufferedFile[Any]):
9     MAX_REQUEST_SIZE: int
10     sftp: SFTPClient
11     handle: SFTPHandle
12     pipelined: bool
13     def __init__(self, sftp: SFTPClient, handle: bytes, mode: str = ..., bufsize: int = ...) -> None: ...
14     def __del__(self) -> None: ...
15     def close(self) -> None: ...
16     def settimeout(self, timeout: float) -> None: ...
17     def gettimeout(self) -> float: ...
18     def setblocking(self, blocking: bool) -> None: ...
19     def seekable(self) -> bool: ...
20     def seek(self, offset: int, whence: int = ...) -> None: ...
21     def stat(self) -> SFTPAttributes: ...
22     def chmod(self, mode: int) -> None: ...
23     def chown(self, uid: int, gid: int) -> None: ...
24     def utime(self, times: tuple[float, float] | None) -> None: ...
25     def truncate(self, size: int) -> None: ...
26     def check(self, hash_algorithm: str, offset: int = ..., length: int = ..., block_size: int = ...) -> bytes: ...
27     def set_pipelined(self, pipelined: bool = ...) -> None: ...
28     def prefetch(self, file_size: int | None = ...) -> None: ...
29     def readv(self, chunks: Sequence[tuple[int, int]]) -> Iterator[bytes]: ...