Skip to content

Commit cdad59f

Browse files
committed
Fix doc build with extra blank lines
1 parent 1a82555 commit cdad59f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

shared-bindings/msgpack/__init__.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
//|
4242
//| Not implemented: 64-bit int, uint, float.
4343
//|
44-
//| Example 1:
44+
//| Example 1::
45+
//|
4546
//| import msgpack
4647
//| from io import BytesIO
4748
//|
@@ -50,7 +51,7 @@
5051
//| b.seek(0)
5152
//| print(msgpack.unpack(b))
5253
//|
53-
//| Example 2: handling objects
54+
//| Example 2: handling objects::
5455
//|
5556
//| from msgpack import pack, unpack, ExtType
5657
//| from io import BytesIO
@@ -78,11 +79,13 @@
7879
//| buffer.seek(0)
7980
//| decoded = unpack(buffer, ext_hook=decoder)
8081
//| print(f"{data} -> {buffer.getvalue()} -> {decoded}")
82+
//|
8183
//| """
8284
//|
8385

8486
//| def pack(obj: object, buffer: WriteableBuffer, *, default: Union[Callable[[object], None], None] = None) -> None:
8587
//| """Ouput object to buffer in msgpack format.
88+
//|
8689
//| :param object obj: Object to convert to msgpack format.
8790
//| :param ~_typing.WriteableBuffer buffer: buffer to write into
8891
//| :param Optional[~_typing.Callable[[object], None]] default:
@@ -114,10 +117,12 @@ MP_DEFINE_CONST_FUN_OBJ_KW(mod_msgpack_pack_obj, 1, mod_msgpack_pack);
114117

115118
//| def unpack(buffer: ReadableBuffer, *, ext_hook: Union[Callable[[int, bytes], object], None] = None, use_list: bool=True) -> object:
116119
//| """Unpack and return one object from buffer.
120+
//|
117121
//| :param ~_typing.ReadableBuffer buffer: buffer to read from
118122
//| :param Optional[~_typing.Callable[[int, bytes], object]] ext_hook: function called for objects in
119123
//| msgpack ext format.
120124
//| :param Optional[bool] use_list: return array as list or tuple (use_list=False).
125+
//|
121126
//| :return object: object read from buffer.
122127
//| """
123128
//| ...

0 commit comments

Comments
 (0)