Skip to content

Commit 6c47e3f

Browse files
committed
revert breaking change to BackendArray
1 parent 8bc7bea commit 6c47e3f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

xarray/backends/common.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,12 +268,9 @@ def robust_getitem(array, key, catch=Exception, max_retries=6, initial_delay=500
268268
time.sleep(1e-3 * next_delay)
269269

270270

271-
class BackendArray(ABC, NdimSizeLenMixin, indexing.ExplicitlyIndexed):
271+
class BackendArray(NdimSizeLenMixin, indexing.ExplicitlyIndexed):
272272
__slots__ = ()
273273

274-
@abstractmethod
275-
def __getitem__(key: indexing.ExplicitIndexer) -> np.typing.ArrayLike: ...
276-
277274
async def async_getitem(key: indexing.ExplicitIndexer) -> np.typing.ArrayLike:
278275
raise NotImplementedError("Backend does not not support asynchronous loading")
279276

0 commit comments

Comments
 (0)