Skip to content

Commit

Permalink
Fixes for mypy 0.990 (#672)
Browse files Browse the repository at this point in the history
  • Loading branch information
ascillitoe authored Nov 8, 2022
1 parent 529e1a4 commit 42c5f16
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.942
rev: v0.990
hooks:
- id: mypy
additional_dependencies: [
Expand Down
2 changes: 1 addition & 1 deletion alibi_detect/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def _set_config(self, inputs): # TODO - move to BaseDetector once config save/l
name = self.__class__.__name__

# Init config dict
self.config: Dict[str, Any] = {
self.config = {
'name': name,
'meta': {
'version': __version__,
Expand Down
2 changes: 1 addition & 1 deletion alibi_detect/utils/keops/kernels.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class GaussianRBF(nn.Module):
def __init__(
self,
sigma: Optional[torch.Tensor] = None,
init_sigma_fn: Callable = None,
init_sigma_fn: Optional[Callable] = None,
trainable: bool = False
) -> None:
"""
Expand Down

0 comments on commit 42c5f16

Please sign in to comment.