Optional: good to know Step 10 of 16 on the Python Developer roadmap

Dataclasses

The @dataclass decorator writes the repetitive __init__ and __repr__ code for classes that mostly hold data. It keeps simple record-style classes short and tidy.

Resources

More in Classes and objects

See it on the Python Developer roadmap