Skip to content

Commit

Permalink
Merge branch 'main' into fix/v3-compressor-config
Browse files Browse the repository at this point in the history
  • Loading branch information
rabernat authored Jul 10, 2023
2 parents 6c5bcfd + ac89782 commit e875786
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/release.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Unreleased

* Allow for partial codec specification in V3 array metadata.
By :user:`Joe Hamman <jhamman>` :issue:`1443`.

* Add ``__contains__`` method to ``KVStore``. By :user:`Christoph Gohlke <cgohlke>` :issue:`1454`.

.. _release_2.15.0:

Expand Down
3 changes: 3 additions & 0 deletions zarr/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,9 @@ def __setitem__(self, key, value):
def __delitem__(self, key):
del self._mutable_mapping[key]

def __contains__(self, key):
return key in self._mutable_mapping

def get(self, key, default=None):
return self._mutable_mapping.get(key, default)

Expand Down

0 comments on commit e875786

Please sign in to comment.