β€œEven if you don't use them directly, dataclasses are a good measuring stick for your class-based code.”

Read more πŸ‘‰ https://pym.dev/friendly-classes/

#Python

Making friendly classes

A friendly class accepts sensible arguments, has a nice string representation, and supports equality checks.