From 1e325c5b5bb6b2deb30626b9fbb27e244bb7bae7 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 30 Mar 2019 10:31:50 +0100 Subject: [PATCH] Please mypy Apparently, mypy isn't able (yet?) to deal with variables that are changing their types at runtime. Python is wonderful. --- libmat2/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libmat2/__init__.py b/libmat2/__init__.py index 46e56b3..41c2395 100644 --- a/libmat2/__init__.py +++ b/libmat2/__init__.py @@ -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