Skip to content

Commit ea0f657

Browse files
committed
add type parameter to generic
1 parent 320e6d2 commit ea0f657

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/zarr/core/indexing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ def __setitem__(self, selection: OrthogonalSelection, value: npt.ArrayLike) -> N
962962

963963
@dataclass(frozen=True)
964964
class AsyncOIndex:
965-
array: AsyncArray
965+
array: AsyncArray[ArrayMetadata]
966966

967967
async def getitem(self, selection: OrthogonalSelection | Array) -> NDArrayLikeOrScalar:
968968
from zarr.core.array import Array
@@ -1289,7 +1289,7 @@ def __setitem__(
12891289

12901290
@dataclass(frozen=True)
12911291
class AsyncVIndex:
1292-
array: AsyncArray
1292+
array: AsyncArray[ArrayMetadata]
12931293

12941294
# TODO: develop Array generic and move zarr.Array[np.intp] | zarr.Array[np.bool_] to ArrayOfIntOrBool
12951295
async def getitem(

0 commit comments

Comments
 (0)