Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stubs/paramiko/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "3.2.*"
version = "3.3.*"
upstream_repository = "https://github.com/paramiko/paramiko"
# Requires a version of cryptography where cryptography.hazmat.primitives.ciphers.Cipher is generic
requires = ["cryptography>=37.0.0"]
Expand Down
16 changes: 14 additions & 2 deletions stubs/paramiko/paramiko/sftp_client.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,21 @@ class SFTPClient(BaseSFTP, ClosingContextManager):
def put(
self, localpath: StrOrBytesPath, remotepath: bytes | str, callback: _Callback | None = None, confirm: bool = True
) -> SFTPAttributes: ...
def getfo(self, remotepath: bytes | str, fl: IO[bytes], callback: _Callback | None = None, prefetch: bool = True) -> int: ...
def getfo(
self,
remotepath: bytes | str,
fl: IO[bytes],
callback: _Callback | None = None,
prefetch: bool = True,
max_concurrent_prefetch_requests: int | None = None,
) -> int: ...
def get(
self, remotepath: bytes | str, localpath: StrOrBytesPath, callback: _Callback | None = None, prefetch: bool = True
self,
remotepath: bytes | str,
localpath: StrOrBytesPath,
callback: _Callback | None = None,
prefetch: bool = True,
max_concurrent_prefetch_requests: int | None = None,
) -> None: ...

class SFTP(SFTPClient): ...
6 changes: 4 additions & 2 deletions stubs/paramiko/paramiko/sftp_file.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,7 @@ class SFTPFile(BufferedFile[Any]):
def truncate(self, size: int) -> None: ...
def check(self, hash_algorithm: str, offset: int = 0, length: int = 0, block_size: int = 0) -> bytes: ...
def set_pipelined(self, pipelined: bool = True) -> None: ...
def prefetch(self, file_size: int | None = None) -> None: ...
def readv(self, chunks: Sequence[tuple[int, int]]) -> Iterator[bytes]: ...
def prefetch(self, file_size: int | None = None, max_concurrent_requests: int | None = None) -> None: ...
def readv(
self, chunks: Sequence[tuple[int, int]], max_concurrent_prefetch_requests: int | None = None
) -> Iterator[bytes]: ...