Skip to content

Put back parse_data_type import #3292

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/zarr/dtype.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand Down
10 changes: 6 additions & 4 deletions tests/test_dtype_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading