base.py 247 B

123456789101112
  1. from typing import Any
  2. class BaseSerializer:
  3. def __init__(self, options):
  4. pass
  5. def dumps(self, value: Any) -> bytes:
  6. raise NotImplementedError
  7. def loads(self, value: bytes) -> Any:
  8. raise NotImplementedError