Add prefetch argument to paramiko SFTPClient.getfo (#6331)

Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
Diego Argueta
2021-11-17 21:31:22 -08:00
committed by GitHub
parent fbb89f9fd5
commit 2f0969cd8d
2 changed files with 5 additions and 3 deletions

View File

@@ -1,3 +1,3 @@
version = "2.7.*"
version = "2.8.*"
python2 = true
requires = ["types-cryptography"]

View File

@@ -52,7 +52,9 @@ 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 get(self, remotepath: bytes | Text, localpath: bytes | Text, callback: _Callback | None = ...) -> None: ...
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: ...
class SFTP(SFTPClient): ...