| Total Complexity | 3 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*- |
||
| 2 | |||
| 3 | from abc import ABC, abstractmethod |
||
| 4 | |||
| 5 | |||
| 6 | class AbstractSerializer(ABC): |
||
| 7 | |||
| 8 | def __init__(self): |
||
| 9 | super(AbstractSerializer, self).__init__() |
||
| 10 | |||
| 11 | @abstractmethod |
||
| 12 | def decode(self, s, **kwargs): |
||
| 13 | pass |
||
| 14 | |||
| 15 | @abstractmethod |
||
| 16 | def encode(self, d, **kwargs): |
||
| 17 | pass |
||
| 18 |