summaryrefslogtreecommitdiff
path: root/shared-bindings/msgpack
diff options
context:
space:
mode:
authorBernhard Boser <boser@server.home>2020-11-09 18:29:31 -0800
committerScott Shawcroft <scott@tannewt.org>2020-12-01 18:38:15 -0800
commitf38bd59c6bbf3cb2f5e4417c676a12444e39f11b (patch)
tree59fa78e5330b7ad3e3f582476ecf392ef56bd7d1 /shared-bindings/msgpack
parent912691e0d28ecbef563610dc328f6b08c61b31b0 (diff)
added signatures to documenation
Diffstat (limited to 'shared-bindings/msgpack')
-rw-r--r--shared-bindings/msgpack/__init__.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-bindings/msgpack/__init__.c b/shared-bindings/msgpack/__init__.c
index b53fb9399..720d88109 100644
--- a/shared-bindings/msgpack/__init__.c
+++ b/shared-bindings/msgpack/__init__.c
@@ -42,7 +42,7 @@
//| print(msgpack.unpack(s))"""
//|
-//| def pack(obj, stream):
+//| def pack(obj: Any, buffer: WriteableBuffer) -> None:
//| """Pack obj to stream."""
//| ...
//|
@@ -54,7 +54,7 @@ STATIC mp_obj_t mod_msgpack_pack(mp_obj_t obj, mp_obj_t stream_obj) {
STATIC MP_DEFINE_CONST_FUN_OBJ_2(mod_msgpack_pack_obj, mod_msgpack_pack);
-//| def pack(obj, stream) -> obj:
+//| def unpack(buffer: ReadableBuffer) -> Any:
//| """Unpack and return one object (in msgpack format) from stream.
//| Call repeatedly to read multiple objects from the stream."""
//| ...