diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2023-01-12 17:20:51 -0500 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2023-01-12 21:44:59 -0500 |
commit | 714350c4dd459577898d72a59edc3213a99443d6 (patch) | |
tree | 8244b90e69d635fc755bda80bda24cf7dc7eaffe /paramiko/channel.py | |
parent | 299556eebf3145019303278432e1fdb6cabb067e (diff) | |
download | paramiko-714350c4dd459577898d72a59edc3213a99443d6.tar.gz |
Start fixing up blatantly wrong-under-py3 docstring types
Diffstat (limited to 'paramiko/channel.py')
-rw-r--r-- | paramiko/channel.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/paramiko/channel.py b/paramiko/channel.py index ccd23e9d..5e0f6ab6 100644 --- a/paramiko/channel.py +++ b/paramiko/channel.py @@ -688,7 +688,7 @@ class Channel(ClosingContextManager): length zero is returned, the channel stream has closed. :param int nbytes: maximum number of bytes to read. - :return: received data, as a ``str``/``bytes``. + :return: received data, as a `bytes`. :raises socket.timeout: if no data is ready before the timeout set by `settimeout`. @@ -734,7 +734,7 @@ class Channel(ClosingContextManager): channel stream has closed. :param int nbytes: maximum number of bytes to read. - :return: received data as a `str` + :return: received data as a `bytes` :raises socket.timeout: if no data is ready before the timeout set by `settimeout`. @@ -786,7 +786,7 @@ class Channel(ClosingContextManager): transmitted, the application needs to attempt delivery of the remaining data. - :param str s: data to send + :param bytes s: data to send :return: number of bytes actually sent, as an `int` :raises socket.timeout: if no data could be sent before the timeout set @@ -807,7 +807,7 @@ class Channel(ClosingContextManager): data has been sent: if only some of the data was transmitted, the application needs to attempt delivery of the remaining data. - :param str s: data to send. + :param bytes s: data to send. :return: number of bytes actually sent, as an `int`. :raises socket.timeout: @@ -849,10 +849,10 @@ class Channel(ClosingContextManager): """ Send data to the channel's "stderr" stream, without allowing partial results. Unlike `send_stderr`, this method continues to send data - from the given string until all data has been sent or an error occurs. - Nothing is returned. + from the given bytestring until all data has been sent or an error + occurs. Nothing is returned. - :param str s: data to send to the client as "stderr" output. + :param bytes s: data to send to the client as "stderr" output. :raises socket.timeout: if sending stalled for longer than the timeout set by `settimeout`. |