From 1b9608aecf25d5e58ee27b9b45afd7f77b883f8b Mon Sep 17 00:00:00 2001 From: jvoisin Date: Wed, 3 May 2023 22:28:02 +0200 Subject: Use proper type annotations instead of comments --- libmat2/__init__.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'libmat2/__init__.py') 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 @@ import enum import importlib -from typing import Optional, Union, Dict +from typing import Dict from . import exiftool, video -# make pyflakes happy -assert Optional -assert Union - # A set of extension that aren't supported, despite matching a supported mimetype UNSUPPORTED_EXTENSIONS = { '.asc', @@ -68,7 +64,7 @@ CMD_DEPENDENCIES = { def check_dependencies() -> Dict[str, Dict[str, bool]]: - ret = dict() # type: Dict[str, Dict] + ret: Dict[str, Dict] = dict() for key, value in DEPENDENCIES.items(): ret[key] = { -- cgit v1.3