2024-12-01 23:53:12 +03:00

18 lines
285 B
Python

"""
Types for encoding and decoding data.
"""
from typing import (
NewType,
Union,
)
HexStr = NewType("HexStr", str)
"""
A string that represents a hex encoded value.
"""
Primitives = Union[bytes, int, bool]
"""
A type that represents bytes, int or bool primitive types.
"""