Skip to content

Commit

Permalink
Use format specification mini-language to format string (zarr-develop…
Browse files Browse the repository at this point in the history
…ers#1558)

Co-authored-by: Joe Hamman <joe@earthmover.io>
  • Loading branch information
DimitriPapadopoulos and jhamman committed Jan 24, 2024
1 parent f3fa531 commit b67adc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zarr/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ def __len__(self):
return len(self._mutable_mapping)

def __repr__(self):
return f"<{self.__class__.__name__}: \n{repr(self._mutable_mapping)}\n at {hex(id(self))}>"
return f"<{self.__class__.__name__}: \n{self._mutable_mapping!r}\n at {id(self):#x}>"

def __eq__(self, other):
if isinstance(other, KVStore):
Expand Down

0 comments on commit b67adc9

Please sign in to comment.