From fe2ebd69af14d376825f21182d415223bd037485 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Mon, 31 Jul 2023 11:07:05 +0300 Subject: [PATCH] Bump paramiko to 3.3.* (#10522) --- stubs/paramiko/METADATA.toml | 2 +- stubs/paramiko/paramiko/sftp_client.pyi | 16 ++++++++++++++-- stubs/paramiko/paramiko/sftp_file.pyi | 6 ++++-- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/stubs/paramiko/METADATA.toml b/stubs/paramiko/METADATA.toml index 5379b3f6e..5c20bdcce 100644 --- a/stubs/paramiko/METADATA.toml +++ b/stubs/paramiko/METADATA.toml @@ -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"] diff --git a/stubs/paramiko/paramiko/sftp_client.pyi b/stubs/paramiko/paramiko/sftp_client.pyi index 460c37c05..ae59ad2ec 100644 --- a/stubs/paramiko/paramiko/sftp_client.pyi +++ b/stubs/paramiko/paramiko/sftp_client.pyi @@ -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): ... diff --git a/stubs/paramiko/paramiko/sftp_file.pyi b/stubs/paramiko/paramiko/sftp_file.pyi index afe4bfd47..56a740e06 100644 --- a/stubs/paramiko/paramiko/sftp_file.pyi +++ b/stubs/paramiko/paramiko/sftp_file.pyi @@ -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]: ...