Commit 1e325c5b authored by jvoisin's avatar jvoisin

Please mypy

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

Python is wonderful.
parent 6c7dc4fa
Pipeline #23626 failed with stages
in 19 seconds
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment