1
0
Fork 0

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
1 changed files with 4 additions and 4 deletions

View File

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