from .exceptions import abstract class decode: def _decode_bytes(self, content: str) -> bytes: return bytes.fromhex(content) def _decode_str(self, content: str) -> str: return bytes.fromhex(content).decode("utf-8") def decode(self) -> object | str | bytes: raise abstract()