Skip to content

Commit 8c73852

Browse files
max-sixtyshoyer
authored andcommitted
Upgrade mypy & DataWithCoords check (pydata#3044)
1 parent d3f6db9 commit 8c73852

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ci/requirements-py36.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ dependencies:
3131
- pydap
3232
- lxml
3333
- pip:
34-
- mypy==0.660
34+
- mypy==0.711

xarray/core/common.py

+4
Original file line numberDiff line numberDiff line change
@@ -996,6 +996,10 @@ def __enter__(self: T) -> T:
996996
def __exit__(self, exc_type, exc_value, traceback) -> None:
997997
self.close()
998998

999+
def __getitem__(self, value):
1000+
# implementations of this class should implement this method
1001+
raise NotImplementedError
1002+
9991003

10001004
def full_like(other, fill_value, dtype: Optional[DTypeLike] = None):
10011005
"""Return a new object with the same shape and type as a given object.

0 commit comments

Comments
 (0)