added signatures to documenation

This commit is contained in:
Bernhard Boser 2020-11-09 18:29:31 -08:00 committed by Scott Shawcroft
parent 912691e0d2
commit f38bd59c6b
No known key found for this signature in database
GPG Key ID: 0DFD512649C052DA
1 changed files with 2 additions and 2 deletions

View File

@ -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."""
//| ...