Use only name in ObjectSize repr and str
Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
This commit is contained in:
parent
f2d34dbf2e
commit
19b8b96898
1 changed files with 1 additions and 1 deletions
|
@ -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__()
|
||||
|
|
Loading…
Reference in a new issue