diff options
| author | jvoisin | 2022-08-28 22:29:06 +0200 |
|---|---|---|
| committer | jvoisin | 2022-08-28 22:29:06 +0200 |
| commit | cc5be8608b49d74a633b80a95a49a018d4dcd477 (patch) | |
| tree | 322c21ba2543831d5a1804ebce50a3f7c2391029 /libmat2/harmless.py | |
| parent | 292f44c0861a57b54a289641ead7e59f158e307e (diff) | |
Simplify the typing annotations
Diffstat (limited to '')
| -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 fad0ef8..8688a9d 100644 --- a/libmat2/harmless.py +++ b/libmat2/harmless.py | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | import shutil | 1 | import shutil |
| 2 | from typing import Dict, Union | 2 | from typing import Union |
| 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: |
