1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2024-11-08 17:19:03 +00:00
dupeguru/core/pe/cache.pyi
Dobatymo f1153c85c0 serialize/deserialize colors to/from bytes instead of strings
it's a tiny bit faster and saves a bit of memory
2022-09-27 17:47:38 +08:00

7 lines
204 B
Python

from typing import Union, Tuple, List
_block = Tuple[int, int, int]
def colors_to_bytes(colors: List[_block]) -> bytes: ... # noqa: E302
def bytes_to_colors(s: bytes) -> Union[List[_block], None]: ...