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

Bump mypy typing coverage

This commit is contained in:
jvoisin 2018-10-12 11:58:01 +02:00
parent b832a59414
commit 2ba38dd2a1
10 changed files with 52 additions and 41 deletions

View file

@ -8,6 +8,7 @@ from typing import Dict, Optional
# make pyflakes happy
assert Dict
assert Optional
# A set of extension that aren't supported, despite matching a supported mimetype
UNSUPPORTED_EXTENSIONS = {
@ -36,7 +37,7 @@ DEPENDENCIES = {
'mutagen': 'Mutagen',
}
def _get_exiftool_path() -> Optional[str]: # pragma: no cover
def _get_exiftool_path() -> str: # pragma: no cover
exiftool_path = '/usr/bin/exiftool'
if os.path.isfile(exiftool_path):
if os.access(exiftool_path, os.X_OK):
@ -48,7 +49,7 @@ def _get_exiftool_path() -> Optional[str]: # pragma: no cover
if os.access(exiftool_path, os.X_OK):
return exiftool_path
return None
raise ValueError
def check_dependencies() -> dict:
ret = collections.defaultdict(bool) # type: Dict[str, bool]