We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eee0079 commit 6722343Copy full SHA for 6722343
1 file changed
src/zarr/codecs/bytes.py
@@ -5,10 +5,8 @@
5
from enum import Enum
6
from typing import TYPE_CHECKING
7
8
-import numpy as np
9
-
10
from zarr.abc.codec import ArrayBytesCodec
11
-from zarr.core.buffer import Buffer, NDArrayLike, NDBuffer
+from zarr.core.buffer import Buffer, NDBuffer
12
from zarr.core.common import JSON, parse_enum, parse_named_configuration
13
from zarr.core.dtype.common import HasEndianness
14
@@ -80,7 +78,7 @@ async def _decode_single(
80
78
dtype = chunk_spec.dtype.to_native_dtype()
81
79
as_array_like = chunk_bytes.as_array_like()
82
chunk_array = chunk_spec.prototype.nd_buffer.from_ndarray_like(
83
- as_array_like.view(dtype=dtype)
+ as_array_like.view(dtype=dtype) # type: ignore[attr-defined]
84
)
85
86
# ensure correct chunk shape
0 commit comments