Skip to content

Commit a5c3dc2

Browse files
committed
typing ...
1 parent 9e7a7b9 commit a5c3dc2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shared-bindings/msgpack/__init__.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@
8080
//| print(f"{data} -> {buffer.getvalue()} -> {decoded}")
8181
//| """
8282

83-
84-
//| def pack(obj: object, buffer: WriteableBuffer, *, default: Union[Callable[[object], None],None]=None) -> None:
83+
//| def pack(obj: object, buffer: WriteableBuffer, *, default: Union[Callable[[object], None], None] = None) -> None:
8584
//| """Ouput object to buffer in msgpack format.
8685
//| :param object obj: Object to convert to msgpack format.
8786
//| :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
110109
}
111110
MP_DEFINE_CONST_FUN_OBJ_KW(mod_msgpack_pack_obj, 1, mod_msgpack_pack);
112111

113-
//| def unpack(buffer: ReadableBuffer, *, ext_hook: Union[Callable[[int, bytes], object],None],None]=None, use_list: bool=True) -> object:
112+
113+
//| def unpack(buffer: ReadableBuffer, *, ext_hook: Union[Callable[[int, bytes], object], None] = None, use_list: bool=True) -> object:
114114
//| """Unpack and return one object from buffer.
115115
//| :param ~_typing.ReadableBuffer buffer: buffer to read from
116116
//| :param Optional[~_typing.Callable[[int, bytes], object]] ext_hook: function called for objects in

0 commit comments

Comments
 (0)