From 7d7fb0f851ab26030db0a89a3dfa3d946d545bf6 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Tue, 31 Oct 2023 11:33:18 +0100 Subject: [PATCH] Use format specification mini-language to format string --- zarr/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zarr/storage.py b/zarr/storage.py index b36f804ebd..27b8b19b1c 100644 --- a/zarr/storage.py +++ b/zarr/storage.py @@ -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):