mirror of
https://github.com/sprockets/sprockets.mixins.mediatype.git
synced 2024-11-24 03:00:23 +00:00
28 lines
599 B
Python
28 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,
|
||
|
]:
|
||
|
...
|