mirror of
https://github.com/sprockets/sprockets.mixins.mediatype.git
synced 2024-11-24 03:00:23 +00:00
acc0a1db14
The next commit is a pile of documentation updates that I didn't want cluttering up this commit.
27 lines
599 B
Python
27 lines
599 B
Python
import typing
|
|
|
|
def packb(
|
|
obj: typing.Union[
|
|
None,
|
|
bytes,
|
|
typing.Dict[typing.Any, typing.Any],
|
|
float,
|
|
int,
|
|
typing.Sequence[typing.Any],
|
|
str,
|
|
],
|
|
ext_handlers: typing.Optional[typing.Dict[str, typing.Any]] = None,
|
|
force_flat_precision: typing.Optional[str] = None) -> bytes:
|
|
...
|
|
|
|
|
|
def unpackb(val: bytes) -> typing.Union[
|
|
None,
|
|
bytes,
|
|
typing.Dict[typing.Any, typing.Any],
|
|
float,
|
|
int,
|
|
typing.List[typing.Any],
|
|
str,
|
|
]:
|
|
...
|