typing ...
This commit is contained in:
parent
9e7a7b9dc4
commit
a5c3dc286c
@ -80,8 +80,7 @@
|
|||||||
//| print(f"{data} -> {buffer.getvalue()} -> {decoded}")
|
//| print(f"{data} -> {buffer.getvalue()} -> {decoded}")
|
||||||
//| """
|
//| """
|
||||||
|
|
||||||
|
//| def pack(obj: object, buffer: WriteableBuffer, *, default: Union[Callable[[object], None], None] = None) -> None:
|
||||||
//| def pack(obj: object, buffer: WriteableBuffer, *, default: Union[Callable[[object], None],None]=None) -> None:
|
|
||||||
//| """Ouput object to buffer in msgpack format.
|
//| """Ouput object to buffer in msgpack format.
|
||||||
//| :param object obj: Object to convert to msgpack format.
|
//| :param object obj: Object to convert to msgpack format.
|
||||||
//| :param ~_typing.WriteableBuffer buffer: buffer to write into
|
//| :param ~_typing.WriteableBuffer buffer: buffer to write into
|
||||||
@ -110,7 +109,8 @@ STATIC mp_obj_t mod_msgpack_pack(size_t n_args, const mp_obj_t *pos_args, mp_map
|
|||||||
}
|
}
|
||||||
MP_DEFINE_CONST_FUN_OBJ_KW(mod_msgpack_pack_obj, 1, mod_msgpack_pack);
|
MP_DEFINE_CONST_FUN_OBJ_KW(mod_msgpack_pack_obj, 1, mod_msgpack_pack);
|
||||||
|
|
||||||
//| def unpack(buffer: ReadableBuffer, *, ext_hook: Union[Callable[[int, bytes], object],None],None]=None, use_list: bool=True) -> object:
|
|
||||||
|
//| def unpack(buffer: ReadableBuffer, *, ext_hook: Union[Callable[[int, bytes], object], None] = None, use_list: bool=True) -> object:
|
||||||
//| """Unpack and return one object from buffer.
|
//| """Unpack and return one object from buffer.
|
||||||
//| :param ~_typing.ReadableBuffer buffer: buffer to read from
|
//| :param ~_typing.ReadableBuffer buffer: buffer to read from
|
||||||
//| :param Optional[~_typing.Callable[[int, bytes], object]] ext_hook: function called for objects in
|
//| :param Optional[~_typing.Callable[[int, bytes], object]] ext_hook: function called for objects in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user