Skip to content

Commit 1e4cd91

Browse files
shoyercopybara-github
authored andcommitted
Disabling type checking of __array__ signature in xarray_tensorstore.
The signature of the base class method changes in future versions of Xarray. PiperOrigin-RevId: 680710948
1 parent 0025559 commit 1e4cd91

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

xarray_tensorstore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def read(self) -> _TensorStoreAdapter:
118118
future = self.array.read()
119119
return type(self)(self.array, future)
120120

121-
def __array__(self, dtype: Optional[np.dtype] = None) -> np.ndarray:
121+
def __array__(self, dtype: Optional[np.dtype] = None) -> np.ndarray: # type: ignore
122122
future = self.array.read() if self.future is None else self.future
123123
return np.asarray(future.result(), dtype=dtype)
124124

0 commit comments

Comments
 (0)