1
0
mirror of synced 2024-11-22 09:14:23 +01:00

Please mypy

Apparently, mypy isn't able (yet?) to deal
with variables that are changing their types
at runtime.

Python is wonderful.
This commit is contained in:
jvoisin 2019-03-30 10:31:50 +01:00
parent 6c7dc4fada
commit 1e325c5b5b

View File

@ -53,12 +53,12 @@ def check_dependencies() -> Dict[str, bool]:
except ImportError: # pragma: no cover except ImportError: # pragma: no cover
ret[key] = False # pragma: no cover ret[key] = False # pragma: no cover
for key, value in CMD_DEPENDENCIES.items(): for k, v in CMD_DEPENDENCIES.items():
ret[key] = True ret[k] = True
try: try:
value() v()
except RuntimeError: # pragma: no cover except RuntimeError: # pragma: no cover
ret[key] = False ret[k] = False
return ret return ret