Skip to content

Commit 068e23f

Browse files
committed
Re-export check_dtype_spec_v2 from zarr.dtype
1 parent 4cc8842 commit 068e23f

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

examples/custom_dtype/custom_dtype.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
import pytest
2323

2424
import zarr
25-
from zarr.core.dtype.common import check_dtype_spec_v2
26-
from zarr.dtype import ZDType, data_type_registry
25+
from zarr.dtype import ZDType, check_dtype_spec_v2, data_type_registry
2726
from zarr.errors import DataTypeValidationError
2827
from zarr.types import JSON, DTypeConfig_V2, DTypeJSON, ZarrFormat
2928

src/zarr/dtype.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,13 @@
4444
parse_data_type, # noqa: F401
4545
parse_dtype,
4646
)
47+
from zarr.core.dtype.common import DTypeSpec_V2, check_dtype_spec_v2
4748

4849
__all__ = [
4950
"Bool",
5051
"Complex64",
5152
"Complex128",
53+
"DTypeSpec_V2",
5254
"DateTime64",
5355
"DateTime64JSON_V2",
5456
"DateTime64JSON_V3",
@@ -85,6 +87,7 @@
8587
"VariableLengthUTF8",
8688
"VariableLengthUTF8JSON_V2",
8789
"ZDType",
90+
"check_dtype_spec_v2",
8891
"data_type_registry",
8992
"parse_dtype",
9093
]

0 commit comments

Comments
 (0)