We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce2f1ee commit d01c726Copy full SHA for d01c726
unblob/report.py
@@ -13,6 +13,12 @@
13
class Report:
14
"""A common base class for different reports."""
15
16
+ def __attrs_post_init__(self):
17
+ for field in attr.fields(type(self)):
18
+ value = getattr(self, field.name)
19
+ if isinstance(value, int):
20
+ object.__setattr__(self, field.name, int(value))
21
+
22
def asdict(self) -> dict:
23
return attr.asdict(self)
24
0 commit comments