Pydantic in 100 Lines (Part 2)
In part 1 of this series we implemented a validator for dataclasses, but we left some important features untouched.
Storing a list in a dataclass is hardly an advaced feature. What about dictionaries, and unions? Are they so hard to implement?
Let’s try, and see for ourselves.