Skip to content

Commit fe2ebd6

Browse files
authored
Bump paramiko to 3.3.* (#10522)
1 parent 54201d5 commit fe2ebd6

3 files changed

Lines changed: 19 additions & 5 deletions

File tree

‎stubs/paramiko/METADATA.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "3.2.*"
1+
version = "3.3.*"
22
upstream_repository = "https://github.com/paramiko/paramiko"
33
# Requires a version of cryptography where cryptography.hazmat.primitives.ciphers.Cipher is generic
44
requires = ["cryptography>=37.0.0"]

‎stubs/paramiko/paramiko/sftp_client.pyi‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,21 @@ class SFTPClient(BaseSFTP, ClosingContextManager):
5353
def put(
5454
self, localpath: StrOrBytesPath, remotepath: bytes | str, callback: _Callback | None = None, confirm: bool = True
5555
) -> SFTPAttributes: ...
56-
def getfo(self, remotepath: bytes | str, fl: IO[bytes], callback: _Callback | None = None, prefetch: bool = True) -> int: ...
56+
def getfo(
57+
self,
58+
remotepath: bytes | str,
59+
fl: IO[bytes],
60+
callback: _Callback | None = None,
61+
prefetch: bool = True,
62+
max_concurrent_prefetch_requests: int | None = None,
63+
) -> int: ...
5764
def get(
58-
self, remotepath: bytes | str, localpath: StrOrBytesPath, callback: _Callback | None = None, prefetch: bool = True
65+
self,
66+
remotepath: bytes | str,
67+
localpath: StrOrBytesPath,
68+
callback: _Callback | None = None,
69+
prefetch: bool = True,
70+
max_concurrent_prefetch_requests: int | None = None,
5971
) -> None: ...
6072

6173
class SFTP(SFTPClient): ...

‎stubs/paramiko/paramiko/sftp_file.pyi‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,7 @@ class SFTPFile(BufferedFile[Any]):
2727
def truncate(self, size: int) -> None: ...
2828
def check(self, hash_algorithm: str, offset: int = 0, length: int = 0, block_size: int = 0) -> bytes: ...
2929
def set_pipelined(self, pipelined: bool = True) -> None: ...
30-
def prefetch(self, file_size: int | None = None) -> None: ...
31-
def readv(self, chunks: Sequence[tuple[int, int]]) -> Iterator[bytes]: ...
30+
def prefetch(self, file_size: int | None = None, max_concurrent_requests: int | None = None) -> None: ...
31+
def readv(
32+
self, chunks: Sequence[tuple[int, int]], max_concurrent_prefetch_requests: int | None = None
33+
) -> Iterator[bytes]: ...

0 commit comments

Comments
 (0)