Skip to content

Commit 1eb03aa

Browse files
authored
fix: stop using ChunkCoords (#110)
1 parent 3008615 commit 1eb03aa

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

python/zarrs/pipeline.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
from zarr.core.array_spec import ArraySpec
2222
from zarr.core.buffer import Buffer, NDArrayLike, NDBuffer
2323
from zarr.core.chunk_grids import ChunkGrid
24-
from zarr.core.common import ChunkCoords
2524
from zarr.core.indexing import SelectorTuple
2625
from zarr.dtype import ZDType
2726

@@ -151,7 +150,7 @@ def __iter__(self) -> Iterator[Codec]:
151150
yield from self.codecs
152151

153152
def validate(
154-
self, *, shape: ChunkCoords, dtype: ZDType, chunk_grid: ChunkGrid
153+
self, *, shape: tuple[int, ...], dtype: ZDType, chunk_grid: ChunkGrid
155154
) -> None:
156155
raise NotImplementedError("validate")
157156

tests/conftest.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import numpy.typing as npt
88
import pytest
99
from zarr import config
10-
from zarr.core.common import ChunkCoords
1110
from zarr.storage import FsspecStore, LocalStore, MemoryStore, ZipStore
1211

1312
from zarrs.utils import ( # noqa: F401
@@ -20,12 +19,12 @@
2019
from typing import Any, Literal
2120

2221
from zarr.abc.store import Store
23-
from zarr.core.common import ChunkCoords, MemoryOrder
22+
from zarr.core.common import MemoryOrder
2423

2524

2625
@dataclass
2726
class ArrayRequest:
28-
shape: ChunkCoords
27+
shape: tuple[int, ...]
2928
dtype: str
3029
order: MemoryOrder
3130

0 commit comments

Comments
 (0)