Skip to content

Commit

Permalink
Update typechecking for mypy 1.7.0 (#866)
Browse files Browse the repository at this point in the history
  • Loading branch information
jklaise committed Nov 13, 2023
1 parent d4014df commit 7dcac8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alibi_detect/saving/saving.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def write_config(cfg: dict, filepath: Union[str, os.PathLike]):
# Write to TOML file
logger.info('Writing config to {}'.format(filepath.joinpath('config.toml')))
with open(filepath.joinpath('config.toml'), 'w') as f:
toml.dump(cfg, f, encoder=toml.TomlNumpyEncoder()) # type: ignore[misc]
toml.dump(cfg, f, encoder=toml.TomlNumpyEncoder())


def _save_preprocess_config(preprocess_fn: Callable,
Expand Down

0 comments on commit 7dcac8a

Please sign in to comment.