Hacker News new | ask | show | jobs
by ReflectedImage 596 days ago
That's what a class is for.
1 comments

Right but that's @dataclass. Being a replacement for classes in commonly used situations is one of its design goals.