We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 283b4fe commit 4254b4aCopy full SHA for 4254b4a
.pre-commit-config.yaml
@@ -11,7 +11,7 @@ repos:
11
hooks:
12
- id: flake8
13
- repo: https://github.com/pre-commit/mirrors-mypy
14
- rev: v0.720 # Must match ci/requirements/*.yml
+ rev: v0.730 # Must match ci/requirements/*.yml
15
16
- id: mypy
17
# run these occasionally, ref discussion https://github.com/pydata/xarray/pull/3194
asv_bench/benchmarks/__init__.py
@@ -18,7 +18,7 @@ def requires_dask():
18
try:
19
import dask # noqa: F401
20
except ImportError:
21
- raise NotImplementedError
+ raise NotImplementedError()
22
23
24
def randn(shape, frac_nan=None, chunks=None, seed=0):
asv_bench/benchmarks/dataset_io.py
@@ -458,7 +458,7 @@ def setup(self):
458
459
import distributed
460
461
462
self.client = distributed.Client()
463
self.write = create_delayed_write()
464
ci/requirements/py36-min-all-deps.yml
@@ -20,7 +20,7 @@ dependencies:
- iris=2.2.0
- lxml=4.4.1 # optional dep of pydap
- matplotlib=3.1.1
- - mypy==0.720 # Must match .pre-commit-config.yaml
+ - mypy==0.730 # Must match .pre-commit-config.yaml
- nc-time-axis=1.2.0
25
- netcdf4=1.5.1.2
26
- numba=0.45.1
ci/requirements/py36.yml
- iris>=1.10
- lxml # optional dep of pydap
- matplotlib
- nc-time-axis
- netcdf4
- numba
ci/requirements/py37-windows.yml
ci/requirements/py37.yml
properties/test_encode_decode.py
@@ -4,7 +4,7 @@
4
These ones pass, just as you'd hope!
5
6
"""
7
-import pytest
+import pytest # isort:skip
8
9
pytest.importorskip("hypothesis")
10
xarray/backends/common.py
@@ -88,13 +88,13 @@ def __len__(self):
88
return len(self.variables)
89
90
def get_dimensions(self): # pragma: no cover
91
92
93
def get_attrs(self): # pragma: no cover
94
95
96
def get_variables(self): # pragma: no cover
97
98
99
def get_encoding(self):
100
return {}
@@ -247,13 +247,13 @@ def encode_attribute(self, a):
247
return a
248
249
def set_dimension(self, d, l): # pragma: no cover
250
251
252
def set_attribute(self, k, v): # pragma: no cover
253
254
255
def set_variable(self, k, v): # pragma: no cover
256
257
258
def store_dataset(self, dataset):
259
xarray/backends/file_manager.py
@@ -28,7 +28,7 @@ class FileManager:
28
29
def acquire(self, needs_lock=True):
30
"""Acquire the file object from this manager."""
31
32
33
def acquire_context(self, needs_lock=True):
34
"""Context manager for acquiring a file. Yields a file object.
@@ -37,11 +37,11 @@ def acquire_context(self, needs_lock=True):
37
(i.e., removes it from any cache) if an exception is raised from the
38
context. It *does not* automatically close the file.
39
40
41
42
def close(self, needs_lock=True):
43
"""Close the file object associated with this manager, if needed."""
44
45
46
47
class CachingFileManager(FileManager):
0 commit comments