If we are talking about all those dunder methods in "Special Methods", we might want to show the easy way out, i.e. @dataclass or attrs. Haven't really used it myself (except for playing around after getting to know it) but it's something one should be aware of in these situations.
If we are talking about all those dunder methods in "Special Methods", we might want to show the easy way out, i.e.
@dataclass
orattrs
. Haven't really used it myself (except for playing around after getting to know it) but it's something one should be aware of in these situations.