Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mypy precommit #6110

Merged
merged 1 commit into from
Dec 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ repos:
# - id: velin
# args: ["--write", "--compact"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.920
rev: v0.930
hooks:
- id: mypy
# `properies` & `asv_bench` are copied from setup.cfg.
Expand Down
10 changes: 5 additions & 5 deletions xarray/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1068,12 +1068,12 @@ def persist(self, **kwargs) -> "Dataset":
@classmethod
def _construct_direct(
cls,
variables: Mapping[Any, Variable],
variables: Dict[Any, Variable],
coord_names: Set[Hashable],
dims: Mapping[Any, int] = None,
attrs: Mapping = None,
indexes: Mapping[Any, Index] = None,
encoding: Mapping = None,
dims: Dict[Any, int] = None,
attrs: Dict = None,
indexes: Dict[Any, Index] = None,
encoding: Dict = None,
close: Callable[[], None] = None,
) -> "Dataset":
"""Shortcut around __init__ for internal use when we want to skip
Expand Down