pull/108/head
Holger Mueller 2019-11-21 22:56:40 +01:00
rodzic 8216f7d1a0
commit a5b10559f1
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -46,8 +46,8 @@ class Value:
self.fmt = fmt
def __repr__(self) -> str:
return (f"{self.__class__.__name__}({self.value}, "
f"'{self._unit}', {self.fmt})")
return (f"{self.__class__.__name__}(" + repr(self._value) +
f", '{self._unit}', {self.fmt})")
def __str__(self) -> str:
fmt = self.fmt