1
0
Fork 0
mirror of synced 2025-07-03 20:07:28 +02:00

Simplify the typing annotations

This commit is contained in:
jvoisin 2022-08-28 22:29:06 +02:00
parent 292f44c086
commit cc5be8608b
15 changed files with 69 additions and 79 deletions

View file

@ -2,12 +2,11 @@
import enum
import importlib
from typing import Dict, Optional, Union
from typing import Optional, Union
from . import exiftool, video
# make pyflakes happy
assert Dict
assert Optional
assert Union
@ -67,8 +66,8 @@ CMD_DEPENDENCIES = {
},
}
def check_dependencies() -> Dict[str, Dict[str, bool]]:
ret = dict() # type: Dict[str, dict]
def check_dependencies() -> dict[str, dict[str, bool]]:
ret = dict() # type: dict[str, dict]
for key, value in DEPENDENCIES.items():
ret[key] = {