We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbec873 commit 6c23dfaCopy full SHA for 6c23dfa
src/zarr/store/common.py
@@ -65,11 +65,9 @@ def __repr__(self) -> str:
65
66
def __eq__(self, other: object) -> bool:
67
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
+ return bool(self.store == other.store and self.path == other.path) # type: ignore[attr-defined]
+ except (AttributeError, TypeError):
+ return False
73
74
75
StoreLike = Store | StorePath | Path | str | dict[str, Buffer]
0 commit comments