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:
parent
6c7dc4fada
commit
1e325c5b5b
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user