Normally, you need to implement the __eq__ method so that you can compare between two classes. dataclasses automatically implements the __eq__ method for you.
With dataclasses, you can compare between 2 classes by only specifying their attributes.


