Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAugspurger committed Oct 10, 2024
1 parent d581b4e commit 2963e5e
Show file tree
Hide file tree
Showing 4 changed files with 967 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/zarr/core/metadata/v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def parse_zarr_format(data: object) -> Literal[3]:
def parse_node_type_array(data: object) -> Literal["array"]:
if data == "array":
return "array"
raise NodeTypeValidationError("array", data)
raise NodeTypeValidationError("node_type", "array", data)


def parse_codecs(data: object) -> tuple[Codec, ...]:
Expand Down
2 changes: 0 additions & 2 deletions src/zarr/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ class NodeTypeValidationError(MetadataValidationError):
for example an 'array' node when we expected a 'group'.
"""

_msg = "Invalid value. Expected '{}'. Got '{}'."


__all__ = [
"ContainsArrayAndGroupError",
Expand Down
Loading

0 comments on commit 2963e5e

Please sign in to comment.