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 <[email protected]>
  • Loading branch information
DimitriPapadopoulos and jhamman authored Dec 7, 2023
1 parent 7d2c9bf commit 10dee6b
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 10dee6b

Please sign in to comment.