diff --git a/src/zarr/dtype.py b/src/zarr/dtype.py index 80505ba2f7..616d1c1ce2 100644 --- a/src/zarr/dtype.py +++ b/src/zarr/dtype.py @@ -38,6 +38,9 @@ VariableLengthUTF8JSON_V2, ZDType, data_type_registry, + # Import for backwards compatibility, but not included in __all__ + # so it doesn't show up in the docs + parse_data_type, # noqa: F401 parse_dtype, ) diff --git a/tests/test_dtype_registry.py b/tests/test_dtype_registry.py index 2716665ff0..aedda5272c 100644 --- a/tests/test_dtype_registry.py +++ b/tests/test_dtype_registry.py @@ -13,18 +13,20 @@ from zarr.core.config import config from zarr.core.dtype import ( AnyDType, - Bool, DataTypeRegistry, - FixedLengthUTF32, TBaseDType, TBaseScalar, + get_data_type_from_json, +) +from zarr.core.dtype.common import unpack_dtype_json +from zarr.dtype import ( # type: ignore[attr-defined] + Bool, + FixedLengthUTF32, ZDType, data_type_registry, - get_data_type_from_json, parse_data_type, parse_dtype, ) -from zarr.core.dtype.common import unpack_dtype_json if TYPE_CHECKING: from collections.abc import Generator