Skip to content

Commit b9bcd31

Browse files
author
Bernhard Boser
committed
added signatures to documenation
1 parent 8a39e0f commit b9bcd31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared-bindings/msgpack/__init__.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
//| print(msgpack.unpack(s))"""
4343
//|
4444

45-
//| def pack(obj, stream):
45+
//| def pack(obj: Any, buffer: WriteableBuffer) -> None:
4646
//| """Pack obj to stream."""
4747
//| ...
4848
//|
@@ -54,7 +54,7 @@ STATIC mp_obj_t mod_msgpack_pack(mp_obj_t obj, mp_obj_t stream_obj) {
5454
STATIC MP_DEFINE_CONST_FUN_OBJ_2(mod_msgpack_pack_obj, mod_msgpack_pack);
5555

5656

57-
//| def pack(obj, stream) -> obj:
57+
//| def unpack(buffer: ReadableBuffer) -> Any:
5858
//| """Unpack and return one object (in msgpack format) from stream.
5959
//| Call repeatedly to read multiple objects from the stream."""
6060
//| ...

0 commit comments

Comments
 (0)