summaryrefslogtreecommitdiff
path: root/libmat2/harmless.py
diff options
context:
space:
mode:
authorjvoisin2023-01-28 15:57:20 +0000
committerjvoisin2023-01-28 15:57:20 +0000
commit39fb254e019c920516bb317d4b48a8de7cac850e (patch)
tree5a5397fe318b8b73f6ebfdb9d1d6c0b64bbda0a3 /libmat2/harmless.py
parent1f73a16ef36d1a8e771a0b3695818d18e095486b (diff)
Fix the type annotations
Diffstat (limited to 'libmat2/harmless.py')
-rw-r--r--libmat2/harmless.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmat2/harmless.py b/libmat2/harmless.py
index 8688a9d..42b6eda 100644
--- a/libmat2/harmless.py
+++ b/libmat2/harmless.py
@@ -1,5 +1,5 @@
1import shutil 1import shutil
2from typing import Union 2from typing import Union, Dict
3from . import abstract 3from . import abstract
4 4
5 5
@@ -7,7 +7,7 @@ class HarmlessParser(abstract.AbstractParser):
7 """ This is the parser for filetypes that can not contain metadata. """ 7 """ This is the parser for filetypes that can not contain metadata. """
8 mimetypes = {'text/plain', 'image/x-ms-bmp'} 8 mimetypes = {'text/plain', 'image/x-ms-bmp'}
9 9
10 def get_meta(self) -> dict[str, Union[str, dict]]: 10 def get_meta(self) -> Dict[str, Union[str, Dict]]:
11 return dict() 11 return dict()
12 12
13 def remove_all(self) -> bool: 13 def remove_all(self) -> bool: