Skip to content

Commit

Permalink
Use format specification mini-language to format string
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Oct 31, 2023
1 parent d756626 commit 7d7fb0f
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 @@ -785,7 +785,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 7d7fb0f

Please sign in to comment.