From bf32cbf0542136ec2d731e0b82b786a0af0997fa Mon Sep 17 00:00:00 2001 From: Janis Klaise Date: Mon, 13 Nov 2023 15:09:34 +0000 Subject: [PATCH] Update typechecking for mypy 1.7.0 (#983) --- 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()