Skip to content

Commit 5486e69

Browse files
committed
Implement eq
1 parent 559eafd commit 5486e69

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/zarr/storage/object_store.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ class ObjectStore(Store):
3232
"""
3333

3434
store: _ObjectStore
35+
"""The underlying obstore instance."""
36+
37+
def __eq__(self, value: object) -> bool:
38+
if not isinstance(value, ObjectStore):
39+
return False
40+
41+
return self.store.__eq__(value.store)
3542

3643
def __init__(self, store: _ObjectStore) -> None:
3744
self.store = store

0 commit comments

Comments
 (0)