Skip to content

Commit b23994c

Browse files
committed
rename NDArrayOrScalarLike to NDArrayLikeOrScalar
1 parent a557456 commit b23994c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

changes/2718.bugfix.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
0-dimensional arrays are now returning a scalar. Therefore, the return type of ``__getitem__`` changed
2-
to NDArrayOrScalarLike. This change is to make the behavior of 0-dimensional arrays consistent with
2+
to NDArrayLikeOrScalar. This change is to make the behavior of 0-dimensional arrays consistent with
33
``numpy`` scalars.

src/zarr/core/array.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,7 +1319,7 @@ async def getitem(
13191319
13201320
Returns
13211321
-------
1322-
NDArrayOrScalarLike
1322+
NDArrayLikeOrScalar
13231323
The retrieved subset of the array's data.
13241324
13251325
Examples
@@ -2289,7 +2289,7 @@ def __getitem__(self, selection: Selection) -> NDArrayLikeOrScalar:
22892289
22902290
Returns
22912291
-------
2292-
NDArrayOrScalarLike
2292+
NDArrayLikeOrScalar
22932293
An array-like or scalar containing the data for the requested region.
22942294
22952295
Examples
@@ -2554,7 +2554,7 @@ def get_basic_selection(
25542554
25552555
Returns
25562556
-------
2557-
NDArrayOrScalarLike
2557+
NDArrayLikeOrScalar
25582558
An array-like or scalar containing the data for the requested region.
25592559
25602560
Examples
@@ -2778,7 +2778,7 @@ def get_orthogonal_selection(
27782778
27792779
Returns
27802780
-------
2781-
NDArrayOrScalarLike
2781+
NDArrayLikeOrScalar
27822782
An array-like or scalar containing the data for the requested selection.
27832783
27842784
Examples
@@ -3012,7 +3012,7 @@ def get_mask_selection(
30123012
30133013
Returns
30143014
-------
3015-
NDArrayOrScalarLike
3015+
NDArrayLikeOrScalar
30163016
An array-like or scalar containing the data for the requested selection.
30173017
30183018
Examples
@@ -3172,7 +3172,7 @@ def get_coordinate_selection(
31723172
31733173
Returns
31743174
-------
3175-
NDArrayOrScalarLike
3175+
NDArrayLikeOrScalar
31763176
An array-like or scalar containing the data for the requested coordinate selection.
31773177
31783178
Examples
@@ -3360,7 +3360,7 @@ def get_block_selection(
33603360
33613361
Returns
33623362
-------
3363-
NDArrayOrScalarLike
3363+
NDArrayLikeOrScalar
33643364
An array-like or scalar containing the data for the requested block selection.
33653365
33663366
Examples

0 commit comments

Comments
 (0)