Default Values and Type Hints in Python Dataclasses
I’ve spent countless hours writing boilerplate for data-holding classes. I remember the days of manually writing __init__, __repr__, and __eq__ methods for every single entity in a project. It was tedious and often led to small, annoying bugs that were hard to track down during late-night deployments. Then came Python 3.7 and the introduction of … Read more >>