Skip to content

Commit 8791224

Browse files
dcheriankmuehlbauer
authored andcommitted
Apply suggestions from code review
1 parent 83c6470 commit 8791224

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xarray/backends/scipy_.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
from xarray.core.dataset import Dataset
4141

4242

43-
NUMPY_2_0 = module_available("numpy", minversion="2.0.0.dev0")
43+
HAS_NUMPY_2_0 = module_available("numpy", minversion="2.0.0.dev0")
4444

4545

4646
def _decode_string(s):
@@ -84,7 +84,7 @@ def __getitem__(self, key):
8484
# adapt handling of copy-kwarg to numpy 2.0
8585
# see https://github.com/numpy/numpy/issues/25916
8686
# and https://github.com/numpy/numpy/pull/25922
87-
copy = None if NUMPY_2_0 and copy is False else copy
87+
copy = None if HAS_NUMPY_2_0 and copy is False else copy
8888

8989
return np.array(data, dtype=self.dtype, copy=copy)
9090

0 commit comments

Comments
 (0)