summaryrefslogtreecommitdiff
path: root/libmat2/abstract.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmat2/abstract.py')
-rw-r--r--libmat2/abstract.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/libmat2/abstract.py b/libmat2/abstract.py
index 0084796..414a68b 100644
--- a/libmat2/abstract.py
+++ b/libmat2/abstract.py
@@ -7,7 +7,8 @@ assert Set # make pyflakes happy
7 7
8class AbstractParser(abc.ABC): 8class AbstractParser(abc.ABC):
9 """ This is the base class of every parser. 9 """ This is the base class of every parser.
10 It might yield `ValueError` on instantiation on invalid files. 10 It might yield `ValueError` on instantiation on invalid files,
11 and `RuntimeError` when something went wrong in `remove_all`.
11 """ 12 """
12 meta_list = set() # type: Set[str] 13 meta_list = set() # type: Set[str]
13 mimetypes = set() # type: Set[str] 14 mimetypes = set() # type: Set[str]
@@ -27,4 +28,7 @@ class AbstractParser(abc.ABC):
27 28
28 @abc.abstractmethod 29 @abc.abstractmethod
29 def remove_all(self) -> bool: 30 def remove_all(self) -> bool:
31 """
32 :raises RuntimeError: Raised if the cleaning process went wrong.
33 """
30 pass # pragma: no cover 34 pass # pragma: no cover