Skip to content

Draft: [Enhancement] Use Python dataclasses to remove boilerplate

Brendan McCollam requested to merge bjmc-add-reprs into master

[WIP] Removes boilerplate by using Python @dataclass decorator. Added in Python 3.7, Python dataclasses automatically provide an __init__(), __repr__() and __eq__() functions.

Question: Would we want to set frozen=True to make these instances immutable?

Merge request reports