Skip to content
Snippets Groups Projects
Commit 711347c8 authored by Julien (jvoisin) Voisin's avatar Julien (jvoisin) Voisin
Browse files

AbstractParser is an abstract class

parent da5cef8c
Branches fix-20
No related tags found
No related merge requests found
class AbstractParser(object): import abc
class AbstractParser(abc.ABC):
meta_list = set() meta_list = set()
mimetypes = set() mimetypes = set()
...@@ -6,8 +8,10 @@ class AbstractParser(object): ...@@ -6,8 +8,10 @@ class AbstractParser(object):
self.filename = filename self.filename = filename
self.output_filename = filename + '.cleaned' self.output_filename = filename + '.cleaned'
@abc.abstractmethod
def get_meta(self) -> dict: def get_meta(self) -> dict:
raise NotImplementedError pass
@abc.abstractmethod
def remove_all(self) -> bool: def remove_all(self) -> bool:
raise NotImplementedError pass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment