summaryrefslogtreecommitdiff
path: root/libmat2/abstract.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmat2/abstract.py')
-rw-r--r--libmat2/abstract.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/libmat2/abstract.py b/libmat2/abstract.py
index 426ccfc..1aff630 100644
--- a/libmat2/abstract.py
+++ b/libmat2/abstract.py
@@ -1,7 +1,7 @@
1import abc 1import abc
2import os 2import os
3import re 3import re
4from typing import Union 4from typing import Union, Set, Dict
5 5
6 6
7class AbstractParser(abc.ABC): 7class AbstractParser(abc.ABC):
@@ -9,8 +9,8 @@ class AbstractParser(abc.ABC):
9 It might yield `ValueError` on instantiation on invalid files, 9 It might yield `ValueError` on instantiation on invalid files,
10 and `RuntimeError` when something went wrong in `remove_all`. 10 and `RuntimeError` when something went wrong in `remove_all`.
11 """ 11 """
12 meta_list = set() # type: set[str] 12 meta_list = set() # type: Set[str]
13 mimetypes = set() # type: set[str] 13 mimetypes = set() # type: Set[str]
14 14
15 def __init__(self, filename: str) -> None: 15 def __init__(self, filename: str) -> None:
16 """ 16 """
@@ -33,7 +33,7 @@ class AbstractParser(abc.ABC):
33 self.sandbox = True 33 self.sandbox = True
34 34
35 @abc.abstractmethod 35 @abc.abstractmethod
36 def get_meta(self) -> dict[str, Union[str, dict]]: 36 def get_meta(self) -> Dict[str, Union[str, Dict]]:
37 """Return all the metadata of the current file""" 37 """Return all the metadata of the current file"""
38 38
39 @abc.abstractmethod 39 @abc.abstractmethod