Skip to content

Commit 8e10124

Browse files
committed
fix import
1 parent 3459871 commit 8e10124

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numcodecs/zarr3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
from zarr.abc.codec import ArrayArrayCodec, BytesBytesCodec
1313
from zarr.buffer import NDBuffer, Buffer, as_numpy_array_wrapper
14+
from zarr.array_spec import ArraySpec
1415
from zarr.common import (
1516
JSON,
16-
ArraySpec,
1717
parse_named_configuration,
1818
product,
1919
to_thread,
@@ -32,7 +32,7 @@ def parse_codec_configuration(
3232
raise ValueError(
3333
f"Expected name to start with '{expected_name_prefix}'. Got {parsed_name} instead."
3434
)
35-
id = parsed_name[len(expected_name_prefix):]
35+
id = parsed_name[slice(len(expected_name_prefix), None)]
3636
return {"id": id, **parsed_configuration}
3737

3838

0 commit comments

Comments
 (0)