summaryrefslogtreecommitdiff
path: root/libmat2/__init__.py
diff options
context:
space:
mode:
authorjvoisin2023-05-03 22:28:02 +0200
committerjvoisin2023-05-03 22:28:02 +0200
commit1b9608aecf25d5e58ee27b9b45afd7f77b883f8b (patch)
treebec20a8bc88dc81891a8c908090d3221cd0178b0 /libmat2/__init__.py
parent2ac8c24dac5431a39cdc091dec47ba594f509387 (diff)
Use proper type annotations instead of comments
Diffstat (limited to 'libmat2/__init__.py')
-rw-r--r--libmat2/__init__.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/libmat2/__init__.py b/libmat2/__init__.py
index 2f20265..4974377 100644
--- a/libmat2/__init__.py
+++ b/libmat2/__init__.py
@@ -2,14 +2,10 @@
2 2
3import enum 3import enum
4import importlib 4import importlib
5from typing import Optional, Union, Dict 5from typing import Dict
6 6
7from . import exiftool, video 7from . import exiftool, video
8 8
9# make pyflakes happy
10assert Optional
11assert Union
12
13# A set of extension that aren't supported, despite matching a supported mimetype 9# A set of extension that aren't supported, despite matching a supported mimetype
14UNSUPPORTED_EXTENSIONS = { 10UNSUPPORTED_EXTENSIONS = {
15 '.asc', 11 '.asc',
@@ -68,7 +64,7 @@ CMD_DEPENDENCIES = {
68 64
69 65
70def check_dependencies() -> Dict[str, Dict[str, bool]]: 66def check_dependencies() -> Dict[str, Dict[str, bool]]:
71 ret = dict() # type: Dict[str, Dict] 67 ret: Dict[str, Dict] = dict()
72 68
73 for key, value in DEPENDENCIES.items(): 69 for key, value in DEPENDENCIES.items():
74 ret[key] = { 70 ret[key] = {