hash_info: add __str__ (#5319)

This commit is contained in:
Ruslan Kuprieiev
2021-01-24 22:40:38 +02:00
committed by GitHub
parent 6a9c0c5ce5
commit 58c97b963c
+3
View File
@@ -21,6 +21,9 @@ class HashInfo:
def __bool__(self):
return bool(self.value)
def __str__(self):
return f"{self.name}: {self.value}"
@classmethod
def from_dict(cls, d):
_d = d.copy() if d else {}