Files
Loren Eteval 00c86a91c3 Initial commit
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
2024-01-26 23:52:46 +08:00

15 lines
293 B
Python

from __future__ import annotations
from abc import ABC
from typing import Any
__all__ = ['Encoder']
class Encoder(ABC):
def encode(self, data: Any, **kwargs) -> Any:
raise NotImplementedError
def decode(self, data: Any, **kwargs) -> Any:
raise NotImplementedError