diff options
| author | jvoisin | 2023-01-28 15:57:20 +0000 |
|---|---|---|
| committer | jvoisin | 2023-01-28 15:57:20 +0000 |
| commit | 39fb254e019c920516bb317d4b48a8de7cac850e (patch) | |
| tree | 5a5397fe318b8b73f6ebfdb9d1d6c0b64bbda0a3 /libmat2/harmless.py | |
| parent | 1f73a16ef36d1a8e771a0b3695818d18e095486b (diff) | |
Fix the type annotations
Diffstat (limited to 'libmat2/harmless.py')
| -rw-r--r-- | libmat2/harmless.py | 4 |
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 @@ | |||
| 1 | import shutil | 1 | import shutil |
| 2 | from typing import Union | 2 | from typing import Union, Dict |
| 3 | from . import abstract | 3 | from . 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: |
