Skip to content

Commit

Permalink
change :returns: to :return:
Browse files Browse the repository at this point in the history
  • Loading branch information
Neradoc committed Mar 29, 2022
1 parent bf0d353 commit f62cd13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions adafruit_wiznet5k/adafruit_wiznet5k_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def recvfrom(self, bufsize=0, flags=0):
:param int bufsize: Maximum number of bytes to receive.
:param int flags: ignored, present for compatibility.
:returns: a tuple (bytes, address) where address is a tuple (ip, port)
:return: a tuple (bytes, address) where address is a tuple (ip, port)
"""
return (
self.recv(bufsize),
Expand All @@ -354,7 +354,7 @@ def recv_into(self, buf, nbytes=0, flags=0):
:param bytearray buf: Data buffer
:param nbytes: Maximum number of bytes to receive
:param int flags: ignored, present for compatibility.
:returns: the number of bytes received
:return: the number of bytes received
"""
if nbytes == 0:
nbytes = len(buf)
Expand All @@ -369,7 +369,7 @@ def recvfrom_into(self, buf, nbytes=0, flags=0):
:param bytearray buf: Data buffer
:param nbytes: Maximum number of bytes to receive
:param int flags: ignored, present for compatibility.
:returns: a tuple (nbytes, address) where address is a tuple (ip, port)
:return: a tuple (nbytes, address) where address is a tuple (ip, port)
"""
return (
self.recv_into(buf, nbytes),
Expand Down

0 comments on commit f62cd13

Please sign in to comment.