summaryrefslogtreecommitdiff
path: root/paramiko/sftp_handle.py
diff options
context:
space:
mode:
Diffstat (limited to 'paramiko/sftp_handle.py')
-rw-r--r--paramiko/sftp_handle.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/sftp_handle.py b/paramiko/sftp_handle.py
index 1b4e1363..b2046526 100644
--- a/paramiko/sftp_handle.py
+++ b/paramiko/sftp_handle.py
@@ -87,7 +87,7 @@ class SFTPHandle(ClosingContextManager):
:param offset: position in the file to start reading from.
:param int length: number of bytes to attempt to read.
- :return: data read from the file, or an SFTP error code, as a `str`.
+ :return: the `bytes` read, or an error code `int`.
"""
readfile = getattr(self, "readfile", None)
if readfile is None:
@@ -120,7 +120,7 @@ class SFTPHandle(ClosingContextManager):
refer to the same file.
:param offset: position in the file to start reading from.
- :param str data: data to write into the file.
+ :param bytes data: data to write into the file.
:return: an SFTP error code like ``SFTP_OK``.
"""
writefile = getattr(self, "writefile", None)