Преглед изворни кода

Inherited converter from abc.ABC

Vsevolod Levitan пре 1 година
родитељ
комит
9e1df6c87f
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5 1
      src/convert/converter.py

+ 5 - 1
src/convert/converter.py

@@ -1,4 +1,8 @@
-class converter:
+from abc import ABC, abstractmethod
+
+
+class converter(ABC):
     @staticmethod
+    @abstractmethod
     def convert(obj):
         pass