From 39fb254e019c920516bb317d4b48a8de7cac850e Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 28 Jan 2023 15:57:20 +0000 Subject: Fix the type annotations --- libmat2/exiftool.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libmat2/exiftool.py') 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 import os import shutil import subprocess -from typing import Union +from typing import Union, Set, Dict from . import abstract from . import bubblewrap @@ -15,9 +15,9 @@ class ExiftoolParser(abstract.AbstractParser): from a import file, hence why several parsers are re-using its `get_meta` method. """ - meta_allowlist = set() # type: set[str] + meta_allowlist = set() # type: Set[str] - def get_meta(self) -> dict[str, Union[str, dict]]: + def get_meta(self) -> Dict[str, Union[str, Dict]]: try: if self.sandbox: out = bubblewrap.run([_get_exiftool_path(), '-json', -- cgit v1.3