diff --git a/unblob/report.py b/unblob/report.py index 99e6da262b..2d241661d3 100644 --- a/unblob/report.py +++ b/unblob/report.py @@ -13,6 +13,12 @@ class Report: """A common base class for different reports.""" + def __attrs_post_init__(self): + for field in attr.fields(type(self)): + value = getattr(self, field.name) + if isinstance(value, int): + object.__setattr__(self, field.name, int(value)) + def asdict(self) -> dict: return attr.asdict(self)