In Module 12 you wrote __init__, __repr__ and __eq__ for every class that was only a bundle of values, and it was the same code every time. A dataclass writes it for you, from the type hints that you already have. It is the modern way to write a record in Python, and it ties together much of this module: type hints, special methods, immutability and hashing. This lesson goes through the features that you will use.
More lessons in Complete Python Programming