From d77cf4cb24d1a8bd6e30fd964e13d395cd2bd694 Mon Sep 17 00:00:00 2001 From: Janis Klaise Date: Mon, 13 Nov 2023 14:06:29 +0000 Subject: [PATCH] Update typechecking for mypy 1.7.0 --- alibi/explainers/anchors/anchor_tabular.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alibi/explainers/anchors/anchor_tabular.py b/alibi/explainers/anchors/anchor_tabular.py index 45447cb4a..225cc2dcf 100644 --- a/alibi/explainers/anchors/anchor_tabular.py +++ b/alibi/explainers/anchors/anchor_tabular.py @@ -542,7 +542,7 @@ def build_lookups(self, X: np.ndarray) -> List[Dict]: if not self.numerical_features: # data contains only categorical variables self.cat_lookup = dict(zip(self.categorical_features, X)) - self.enc2feat_idx = dict(zip(*[self.categorical_features] * 2)) # type: ignore[arg-type] + self.enc2feat_idx = dict(zip(*[self.categorical_features] * 2)) return [self.cat_lookup, self.ord_lookup, self.enc2feat_idx] first_numerical_idx = np.searchsorted(self.categorical_features, self.numerical_features[0]).item()