Skip to content

Commit a2fd657

Browse files
committed
refactor: remove unnecessary ceildiv re-exports
Assisted-by: Codex:GPT-6
1 parent 37d144d commit a2fd657

4 files changed

Lines changed: 2 additions & 5 deletions

File tree

‎src/zarr/core/array.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@
7474
parse_shapelike,
7575
product,
7676
)
77-
from zarr.core.common import ceildiv as ceildiv # noqa: PLC0414 - preserve the existing export
7877
from zarr.core.config import config as zarr_config
7978
from zarr.core.dtype import (
8079
Structured,

‎src/zarr/core/chunk_grids.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
ceildiv_int,
2929
parse_shapelike,
3030
)
31-
from zarr.core.common import ceildiv as ceildiv # noqa: PLC0414 - preserve the existing export
3231
from zarr.errors import ZarrUserWarning
3332

3433
if TYPE_CHECKING:

‎src/zarr/core/indexing.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import numpy.typing as npt
2323

2424
from zarr.core.chunk_grids import FixedDimension
25-
from zarr.core.common import ceildiv as ceildiv # noqa: PLC0414 - preserve the existing export
2625
from zarr.core.common import ceildiv_int, product
2726
from zarr.core.metadata.v2 import ArrayV2Metadata
2827
from zarr.core.metadata.v3 import ArrayV3Metadata

‎tests/test_indexing.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from zarr import Array
2121
from zarr.core.buffer import default_buffer_prototype
2222
from zarr.core.chunk_grids import ChunkGrid
23+
from zarr.core.common import ceildiv_int
2324
from zarr.core.indexing import (
2425
BasicSelection,
2526
CoordinateIndexer,
@@ -31,7 +32,6 @@
3132
_ArrayIndexingOrder,
3233
_iter_grid,
3334
_iter_regions,
34-
ceildiv,
3535
make_slice_selection,
3636
normalize_integer_selection,
3737
oindex,
@@ -2451,7 +2451,7 @@ def test_iter_regions(
24512451
origin_parsed = origin
24522452
if selection_shape is None:
24532453
selection_shape_parsed = tuple(
2454-
ceildiv(ds, rs) - o
2454+
ceildiv_int(ds, rs) - o
24552455
for ds, o, rs in zip(domain_shape, origin_parsed, region_shape, strict=True)
24562456
)
24572457
else:

0 commit comments

Comments
 (0)