summaryrefslogtreecommitdiff
path: root/libmat2/exiftool.py
diff options
context:
space:
mode:
authorjvoisin2023-01-28 15:57:20 +0000
committerjvoisin2023-01-28 15:57:20 +0000
commit39fb254e019c920516bb317d4b48a8de7cac850e (patch)
tree5a5397fe318b8b73f6ebfdb9d1d6c0b64bbda0a3 /libmat2/exiftool.py
parent1f73a16ef36d1a8e771a0b3695818d18e095486b (diff)
Fix the type annotations
Diffstat (limited to 'libmat2/exiftool.py')
-rw-r--r--libmat2/exiftool.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmat2/exiftool.py b/libmat2/exiftool.py
index cdfce3d..5979a64 100644
--- a/libmat2/exiftool.py
+++ b/libmat2/exiftool.py
@@ -4,7 +4,7 @@ import logging
4import os 4import os
5import shutil 5import shutil
6import subprocess 6import subprocess
7from typing import Union 7from typing import Union, Set, Dict
8 8
9from . import abstract 9from . import abstract
10from . import bubblewrap 10from . import bubblewrap
@@ -15,9 +15,9 @@ class ExiftoolParser(abstract.AbstractParser):
15 from a import file, hence why several parsers are re-using its `get_meta` 15 from a import file, hence why several parsers are re-using its `get_meta`
16 method. 16 method.
17 """ 17 """
18 meta_allowlist = set() # type: set[str] 18 meta_allowlist = set() # type: Set[str]
19 19
20 def get_meta(self) -> dict[str, Union[str, dict]]: 20 def get_meta(self) -> Dict[str, Union[str, Dict]]:
21 try: 21 try:
22 if self.sandbox: 22 if self.sandbox:
23 out = bubblewrap.run([_get_exiftool_path(), '-json', 23 out = bubblewrap.run([_get_exiftool_path(), '-json',