Skip to content

Attributes.__delitem__ is broken #2903

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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