Skip to content

Commit 2963e5e

Browse files
committed
more
1 parent d581b4e commit 2963e5e

File tree

4 files changed

+967
-5
lines changed

4 files changed

+967
-5
lines changed

src/zarr/core/metadata/v3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def parse_zarr_format(data: object) -> Literal[3]:
4444
def parse_node_type_array(data: object) -> Literal["array"]:
4545
if data == "array":
4646
return "array"
47-
raise NodeTypeValidationError("array", data)
47+
raise NodeTypeValidationError("node_type", "array", data)
4848

4949

5050
def parse_codecs(data: object) -> tuple[Codec, ...]:

src/zarr/errors.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ class NodeTypeValidationError(MetadataValidationError):
3939
for example an 'array' node when we expected a 'group'.
4040
"""
4141

42-
_msg = "Invalid value. Expected '{}'. Got '{}'."
43-
4442

4543
__all__ = [
4644
"ContainsArrayAndGroupError",

0 commit comments

Comments
 (0)