mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-08 10:49:59 +00:00
fix lint
This commit is contained in:
parent
1c33b7efc7
commit
b9d495db40
3 changed files with 10 additions and 8 deletions
|
|
@ -25,7 +25,7 @@ def pack(o: t.Any, stream: t.BinaryIO, **kwargs: dict[str, t.Any]):
|
|||
|
||||
See :class:`Packer` for options.
|
||||
"""
|
||||
packer = Packer(autoreset=True, **kwargs) # type: ignore
|
||||
packer = Packer(autoreset=True, **kwargs) # type: ignore
|
||||
stream.write(t.cast(bytes, packer.pack(o)))
|
||||
|
||||
|
||||
|
|
@ -35,7 +35,7 @@ def packb(o: t.Any, **kwargs: dict[str, t.Any]):
|
|||
|
||||
See :class:`Packer` for options.
|
||||
"""
|
||||
return Packer(autoreset=True, **kwargs).pack(o) # type: ignore
|
||||
return Packer(autoreset=True, **kwargs).pack(o) # type: ignore
|
||||
|
||||
|
||||
def unpack(stream: t.BinaryIO, **kwargs: dict[str, t.Any]):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue