Skip to content

Commit 2f0969c

Browse files
darguetaAkuli
andauthored
Add prefetch argument to paramiko SFTPClient.getfo (#6331)
Co-authored-by: Akuli <[email protected]>
1 parent fbb89f9 commit 2f0969c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

stubs/paramiko/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
version = "2.7.*"
1+
version = "2.8.*"
22
python2 = true
33
requires = ["types-cryptography"]

stubs/paramiko/paramiko/sftp_client.pyi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ class SFTPClient(BaseSFTP, ClosingContextManager):
5252
def put(
5353
self, localpath: bytes | Text, remotepath: bytes | Text, callback: _Callback | None = ..., confirm: bool = ...
5454
) -> SFTPAttributes: ...
55-
def getfo(self, remotepath: bytes | Text, fl: IO[bytes], callback: _Callback | None = ...) -> int: ...
56-
def get(self, remotepath: bytes | Text, localpath: bytes | Text, callback: _Callback | None = ...) -> None: ...
55+
def getfo(self, remotepath: bytes | Text, fl: IO[bytes], callback: _Callback | None = ..., prefetch: bool = ...) -> int: ...
56+
def get(
57+
self, remotepath: bytes | Text, localpath: bytes | Text, callback: _Callback | None = ..., prefetch: bool = ...
58+
) -> None: ...
5759

5860
class SFTP(SFTPClient): ...

0 commit comments

Comments
 (0)