Skip to content

Commit 6c23dfa

Browse files
Reapply changes lost in recent merges
1 parent fbec873 commit 6c23dfa

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/zarr/store/common.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,9 @@ def __repr__(self) -> str:
6565

6666
def __eq__(self, other: object) -> bool:
6767
try:
68-
if self.store == other.store and self.path == other.path: # type: ignore[attr-defined]
69-
return True
70-
except Exception:
71-
pass
72-
return False
68+
return bool(self.store == other.store and self.path == other.path) # type: ignore[attr-defined]
69+
except (AttributeError, TypeError):
70+
return False
7371

7472

7573
StoreLike = Store | StorePath | Path | str | dict[str, Buffer]

0 commit comments

Comments
 (0)