summaryrefslogtreecommitdiff
path: root/shared-bindings/socket
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2020-07-28 14:15:02 -0400
committerDan Halbert <halbert@halwitz.org>2020-07-28 14:15:02 -0400
commitaa97ea25016c60edf688b51f6495f8fbd740cc8e (patch)
treef5b24b64a8f55f0e940e2aabb947e2825729c6e9 /shared-bindings/socket
parente5e132a36436aa5aa0a6124b28edd44536fc38c7 (diff)
parent9fc7118861a118b9e0a7e37b6bc902654ee11401 (diff)
Merge remote-tracking branch 'adafruit/main' into blm_badge
Diffstat (limited to 'shared-bindings/socket')
-rw-r--r--shared-bindings/socket/__init__.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/shared-bindings/socket/__init__.c b/shared-bindings/socket/__init__.c
index a2007edf6..53ac57d11 100644
--- a/shared-bindings/socket/__init__.c
+++ b/shared-bindings/socket/__init__.c
@@ -212,7 +212,7 @@ STATIC mp_obj_t socket_connect(mp_obj_t self_in, mp_obj_t addr_in) {
}
STATIC MP_DEFINE_CONST_FUN_OBJ_2(socket_connect_obj, socket_connect);
-//| def send(self, bytes: bytes) -> int:
+//| def send(self, bytes: ReadableBuffer) -> int:
//| """Send some bytes to the connected remote address.
//| Suits sockets of type SOCK_STREAM
//|
@@ -312,7 +312,7 @@ STATIC mp_obj_t socket_recv(mp_obj_t self_in, mp_obj_t len_in) {
}
STATIC MP_DEFINE_CONST_FUN_OBJ_2(socket_recv_obj, socket_recv);
-//| def sendto(self, bytes: bytes, address: tuple) -> int:
+//| def sendto(self, bytes: ReadableBuffer, address: tuple) -> int:
//| """Send some bytes to a specific address.
//| Suits sockets of type SOCK_DGRAM
//|
@@ -512,7 +512,7 @@ STATIC const mp_obj_type_t socket_type = {
.locals_dict = (mp_obj_dict_t*)&socket_locals_dict,
};
-//| def getaddrinfo(host: string, port: string) -> tuple:
+//| def getaddrinfo(host: str, port: int) -> tuple:
//| """Gets the address information for a hostname and port
//|
//| Returns the appropriate family, socket type, socket protocol and