From 1d39cf04331328d18707bf1281b0914bd81d60f3 Mon Sep 17 00:00:00 2001 From: Diego Argueta Date: Wed, 17 Nov 2021 11:29:03 -0800 Subject: [PATCH 1/3] Add `prefetch` argument to paramiko SFTPClient.getfo --- stubs/paramiko/paramiko/sftp_client.pyi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stubs/paramiko/paramiko/sftp_client.pyi b/stubs/paramiko/paramiko/sftp_client.pyi index 3c794da84e3a..968174ad1bf2 100644 --- a/stubs/paramiko/paramiko/sftp_client.pyi +++ b/stubs/paramiko/paramiko/sftp_client.pyi @@ -53,6 +53,8 @@ class SFTPClient(BaseSFTP, ClosingContextManager): self, localpath: bytes | Text, remotepath: bytes | Text, callback: _Callback | None = ..., confirm: bool = ... ) -> SFTPAttributes: ... def getfo(self, remotepath: bytes | Text, fl: IO[bytes], callback: _Callback | None = ...) -> int: ... - def get(self, remotepath: bytes | Text, localpath: bytes | Text, callback: _Callback | None = ...) -> None: ... + def get( + self, remotepath: bytes | Text, localpath: bytes | Text, callback: _Callback | None = ..., prefetch: bool = ... + ) -> None: ... class SFTP(SFTPClient): ... From bbee988a0e34e8eed94ee1e7eae83eefa620d028 Mon Sep 17 00:00:00 2001 From: Diego Argueta Date: Wed, 17 Nov 2021 12:12:09 -0800 Subject: [PATCH 2/3] Bump paramiko version to 2.8 --- stubs/paramiko/METADATA.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/paramiko/METADATA.toml b/stubs/paramiko/METADATA.toml index c209112e1ab6..b526e1ea4802 100644 --- a/stubs/paramiko/METADATA.toml +++ b/stubs/paramiko/METADATA.toml @@ -1,3 +1,3 @@ -version = "2.7.*" +version = "2.8.*" python2 = true requires = ["types-cryptography"] From 58ebfbe2efd1b2b4ffb97220ca638eed61cc85cd Mon Sep 17 00:00:00 2001 From: Diego Argueta Date: Wed, 17 Nov 2021 17:38:08 -0800 Subject: [PATCH 3/3] PR feedback Co-authored-by: Akuli --- stubs/paramiko/paramiko/sftp_client.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/paramiko/paramiko/sftp_client.pyi b/stubs/paramiko/paramiko/sftp_client.pyi index 968174ad1bf2..fd49ff3be620 100644 --- a/stubs/paramiko/paramiko/sftp_client.pyi +++ b/stubs/paramiko/paramiko/sftp_client.pyi @@ -52,7 +52,7 @@ class SFTPClient(BaseSFTP, ClosingContextManager): def put( self, localpath: bytes | Text, remotepath: bytes | Text, callback: _Callback | None = ..., confirm: bool = ... ) -> SFTPAttributes: ... - def getfo(self, remotepath: bytes | Text, fl: IO[bytes], callback: _Callback | None = ...) -> int: ... + def getfo(self, remotepath: bytes | Text, fl: IO[bytes], callback: _Callback | None = ..., prefetch: bool = ...) -> int: ... def get( self, remotepath: bytes | Text, localpath: bytes | Text, callback: _Callback | None = ..., prefetch: bool = ... ) -> None: ...