Skip to content

Commit

Permalink
Update typechecking for mypy 1.7.0 (#983)
Browse files Browse the repository at this point in the history
  • Loading branch information
jklaise authored Nov 13, 2023
1 parent 443d1d9 commit bf32cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alibi/explainers/anchors/anchor_tabular.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit bf32cbf

Please sign in to comment.