1
0
mirror of synced 2024-12-22 20:59:58 +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
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