Skip to content

Attributes.__delitem__ is broken #2903

Closed
@dcherian

Description

@dcherian

Zarr version

v3.0.5

Description

Deleting zarr_group.attrs["key"] doesn't work.

def __delitem__(self, key: str) -> None:
new_attrs = dict(self._obj.metadata.attributes)
del new_attrs[key]
self._obj = self._obj.update_attributes(new_attrs)

After #2870 , update_attributes means update, not overwrite.

Steps to reproduce

...

Additional output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugPotential issues with the zarr-python library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions