Skip to content

Commit a26b0b2

Browse files
committed
more more
1 parent fe07eff commit a26b0b2

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/zarr/core/array_spec.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
from __future__ import annotations
22

33
from dataclasses import dataclass
4-
from typing import TYPE_CHECKING, Any, Literal
4+
from typing import TYPE_CHECKING, Any
55

66
import numpy as np
77

8-
from zarr.core.common import parse_fill_value, parse_order, parse_shapelike
8+
from zarr.core.common import MemoryOrder, parse_fill_value, parse_order, parse_shapelike
99

1010
if TYPE_CHECKING:
1111
from zarr.core.buffer import BufferPrototype
@@ -17,15 +17,15 @@ class ArraySpec:
1717
shape: ChunkCoords
1818
dtype: np.dtype[Any]
1919
fill_value: Any
20-
order: Literal["C", "F"]
20+
order: MemoryOrder
2121
prototype: BufferPrototype
2222

2323
def __init__(
2424
self,
2525
shape: ChunkCoords,
2626
dtype: np.dtype[Any],
2727
fill_value: Any,
28-
order: Literal["C", "F"],
28+
order: MemoryOrder,
2929
prototype: BufferPrototype,
3030
) -> None:
3131
shape_parsed = parse_shapelike(shape)

src/zarr/core/metadata/v3.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
JSON,
3232
ZARR_JSON,
3333
ChunkCoords,
34+
MemoryOrder,
3435
parse_named_configuration,
3536
parse_shapelike,
3637
)
@@ -289,7 +290,7 @@ def ndim(self) -> int:
289290
return len(self.shape)
290291

291292
def get_chunk_spec(
292-
self, _chunk_coords: ChunkCoords, order: Literal["C", "F"], prototype: BufferPrototype
293+
self, _chunk_coords: ChunkCoords, order: MemoryOrder, prototype: BufferPrototype
293294
) -> ArraySpec:
294295
assert isinstance(
295296
self.chunk_grid, RegularChunkGrid

0 commit comments

Comments
 (0)