| 
35 | 35 | from zarr.core.buffer import (  | 
36 | 36 |     BufferPrototype,  | 
37 | 37 |     NDArrayLike,  | 
38 |  | -    NDArrayOrScalarLike,  | 
 | 38 | +    NDArrayLikeOrScalar,  | 
39 | 39 |     NDBuffer,  | 
40 | 40 |     default_buffer_prototype,  | 
41 | 41 | )  | 
@@ -1256,7 +1256,7 @@ async def _get_selection(  | 
1256 | 1256 |         prototype: BufferPrototype,  | 
1257 | 1257 |         out: NDBuffer | None = None,  | 
1258 | 1258 |         fields: Fields | None = None,  | 
1259 |  | -    ) -> NDArrayOrScalarLike:  | 
 | 1259 | +    ) -> NDArrayLikeOrScalar:  | 
1260 | 1260 |         # check fields are sensible  | 
1261 | 1261 |         out_dtype = check_fields(fields, self.dtype)  | 
1262 | 1262 | 
 
  | 
@@ -1306,7 +1306,7 @@ async def getitem(  | 
1306 | 1306 |         selection: BasicSelection,  | 
1307 | 1307 |         *,  | 
1308 | 1308 |         prototype: BufferPrototype | None = None,  | 
1309 |  | -    ) -> NDArrayOrScalarLike:  | 
 | 1309 | +    ) -> NDArrayLikeOrScalar:  | 
1310 | 1310 |         """  | 
1311 | 1311 |         Asynchronous function that retrieves a subset of the array's data based on the provided selection.  | 
1312 | 1312 | 
  | 
@@ -2278,7 +2278,7 @@ def __array__(  | 
2278 | 2278 | 
 
  | 
2279 | 2279 |         return arr_np  | 
2280 | 2280 | 
 
  | 
2281 |  | -    def __getitem__(self, selection: Selection) -> NDArrayOrScalarLike:  | 
 | 2281 | +    def __getitem__(self, selection: Selection) -> NDArrayLikeOrScalar:  | 
2282 | 2282 |         """Retrieve data for an item or region of the array.  | 
2283 | 2283 | 
  | 
2284 | 2284 |         Parameters  | 
@@ -2536,7 +2536,7 @@ def get_basic_selection(  | 
2536 | 2536 |         out: NDBuffer | None = None,  | 
2537 | 2537 |         prototype: BufferPrototype | None = None,  | 
2538 | 2538 |         fields: Fields | None = None,  | 
2539 |  | -    ) -> NDArrayOrScalarLike:  | 
 | 2539 | +    ) -> NDArrayLikeOrScalar:  | 
2540 | 2540 |         """Retrieve data for an item or region of the array.  | 
2541 | 2541 | 
  | 
2542 | 2542 |         Parameters  | 
@@ -2756,7 +2756,7 @@ def get_orthogonal_selection(  | 
2756 | 2756 |         out: NDBuffer | None = None,  | 
2757 | 2757 |         fields: Fields | None = None,  | 
2758 | 2758 |         prototype: BufferPrototype | None = None,  | 
2759 |  | -    ) -> NDArrayOrScalarLike:  | 
 | 2759 | +    ) -> NDArrayLikeOrScalar:  | 
2760 | 2760 |         """Retrieve data by making a selection for each dimension of the array. For  | 
2761 | 2761 |         example, if an array has 2 dimensions, allows selecting specific rows and/or  | 
2762 | 2762 |         columns. The selection for each dimension can be either an integer (indexing a  | 
@@ -2992,7 +2992,7 @@ def get_mask_selection(  | 
2992 | 2992 |         out: NDBuffer | None = None,  | 
2993 | 2993 |         fields: Fields | None = None,  | 
2994 | 2994 |         prototype: BufferPrototype | None = None,  | 
2995 |  | -    ) -> NDArrayOrScalarLike:  | 
 | 2995 | +    ) -> NDArrayLikeOrScalar:  | 
2996 | 2996 |         """Retrieve a selection of individual items, by providing a Boolean array of the  | 
2997 | 2997 |         same shape as the array against which the selection is being made, where True  | 
2998 | 2998 |         values indicate a selected item.  | 
@@ -3154,7 +3154,7 @@ def get_coordinate_selection(  | 
3154 | 3154 |         out: NDBuffer | None = None,  | 
3155 | 3155 |         fields: Fields | None = None,  | 
3156 | 3156 |         prototype: BufferPrototype | None = None,  | 
3157 |  | -    ) -> NDArrayOrScalarLike:  | 
 | 3157 | +    ) -> NDArrayLikeOrScalar:  | 
3158 | 3158 |         """Retrieve a selection of individual items, by providing the indices  | 
3159 | 3159 |         (coordinates) for each selected item.  | 
3160 | 3160 | 
  | 
@@ -3342,7 +3342,7 @@ def get_block_selection(  | 
3342 | 3342 |         out: NDBuffer | None = None,  | 
3343 | 3343 |         fields: Fields | None = None,  | 
3344 | 3344 |         prototype: BufferPrototype | None = None,  | 
3345 |  | -    ) -> NDArrayOrScalarLike:  | 
 | 3345 | +    ) -> NDArrayLikeOrScalar:  | 
3346 | 3346 |         """Retrieve a selection of individual items, by providing the indices  | 
3347 | 3347 |         (coordinates) for each selected item.  | 
3348 | 3348 | 
  | 
 | 
0 commit comments