Source code for gigl.common.utils.compute.serialization.coder
from typing import Generic, Protocol, TypeVar
[docs]
class CoderProtocol(Protocol, Generic[T]):
[docs]
def encode(self, obj: T) -> bytes:
...
[docs]
def decode(self, byte_str: bytes) -> T:
...