empty implementation of abstract base class method

This commit is contained in:
Matthias Bisping 2022-03-31 17:29:05 +02:00
parent b6ccfbcf8f
commit 82added50a

View File

@ -4,6 +4,9 @@ from image_prediction.formatter.formatters.key_formatter import KeyFormatter
class EnumFormatter(KeyFormatter):
@staticmethod
def format_key(key):
def format_key(self, key):
return key.value if isinstance(key, Enum) else key
def transform(self, obj):
raise NotImplementedError