Skip to content

Commit 28c5b3b

Browse files
committed
fix stale imports
1 parent 8a68ed8 commit 28c5b3b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/zarr/api/asynchronous.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
from zarr.abc.numcodec import Numcodec
5757
from zarr.core.buffer import NDArrayLikeOrScalar
5858
from zarr.core.chunk_key_encodings import ChunkKeyEncoding
59-
from zarr.core.metadata.v2 import CompressorLike_V2
6059
from zarr.storage import StoreLike
6160

6261
# TODO: this type could use some more thought
@@ -131,7 +130,7 @@ class _LikeArgs(TypedDict):
131130
dtype: NotRequired[np.dtype[np.generic]]
132131
order: NotRequired[Literal["C", "F"]]
133132
filters: NotRequired[tuple[Codec, ...] | None]
134-
compressor: NotRequired[Codec]
133+
compressor: NotRequired[Codec | None]
135134
codecs: NotRequired[tuple[Codec, ...]]
136135

137136

src/zarr/core/metadata/v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class ArrayV2Metadata(Metadata):
7777
order: MemoryOrder = "C"
7878
filters: tuple[Codec, ...] | None = None
7979
dimension_separator: Literal[".", "/"] = "."
80-
compressor: Codec | NumcodecWrapper | None = None
80+
compressor: Codec | None = None
8181
attributes: dict[str, JSON] = field(default_factory=dict)
8282
zarr_format: Literal[2] = field(init=False, default=2)
8383

0 commit comments

Comments
 (0)