Skip to content

Commit

Permalink
Make SerializableType ans SerializationStrategy not abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatal1ty committed Sep 18, 2020
1 parent f9a46f4 commit 235067a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions mashumaro/types.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
from abc import ABC, abstractmethod
import decimal


class SerializableType(ABC):
@abstractmethod
class SerializableType:
def _serialize(self):
raise NotImplementedError

@classmethod
@abstractmethod
def _deserialize(cls, value):
raise NotImplementedError


class SerializationStrategy(ABC):
@abstractmethod
class SerializationStrategy:
def _serialize(self, value):
raise NotImplementedError

@abstractmethod
def _deserialize(self, value):
raise NotImplementedError

Expand Down

0 comments on commit 235067a

Please sign in to comment.