From 82added50ad18a08ea2bc29be7e263e9527fab49 Mon Sep 17 00:00:00 2001 From: Matthias Bisping Date: Thu, 31 Mar 2022 17:29:05 +0200 Subject: [PATCH] empty implementation of abstract base class method --- image_prediction/formatter/formatters/enum.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/image_prediction/formatter/formatters/enum.py b/image_prediction/formatter/formatters/enum.py index 55b8c18..bd9f27d 100644 --- a/image_prediction/formatter/formatters/enum.py +++ b/image_prediction/formatter/formatters/enum.py @@ -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