Skip to content

Commit 1c9f9fe

Browse files
committed
use parse_dtype
1 parent 33d0bd9 commit 1c9f9fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/zarr/core/array.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
VariableLengthUTF8,
7272
ZDType,
7373
ZDTypeLike,
74-
parse_data_type,
74+
parse_dtype,
7575
)
7676
from zarr.core.dtype.common import HasEndianness, HasItemSize, HasObjectCodec
7777
from zarr.core.indexing import (
@@ -638,7 +638,7 @@ async def _create(
638638
Deprecated in favor of :func:`zarr.api.asynchronous.create_array`.
639639
"""
640640

641-
dtype_parsed = parse_data_type(dtype, zarr_format=zarr_format)
641+
dtype_parsed = parse_dtype(dtype, zarr_format=zarr_format)
642642
store_path = await make_store_path(store)
643643

644644
shape = parse_shapelike(shape)
@@ -4539,7 +4539,7 @@ async def init_array(
45394539

45404540
from zarr.codecs.sharding import ShardingCodec, ShardingCodecIndexLocation
45414541

4542-
zdtype = parse_data_type(dtype, zarr_format=zarr_format)
4542+
zdtype = parse_dtype(dtype, zarr_format=zarr_format)
45434543
shape_parsed = parse_shapelike(shape)
45444544
chunk_key_encoding_parsed = _parse_chunk_key_encoding(
45454545
chunk_key_encoding, zarr_format=zarr_format

0 commit comments

Comments
 (0)