Use only name in ObjectSize repr and str

Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
This commit is contained in:
Andrey Berezin 2023-09-07 14:36:46 +03:00 committed by Andrey Berezin
parent f2d34dbf2e
commit 19b8b96898

View file

@ -7,7 +7,7 @@ class ObjectSize:
value: int
def __str__(self) -> str:
return f"{self.name} object size"
return self.name
def __repr__(self) -> str:
return self.__str__()