Month: February 2024

Pydantic & Dataclasses – How to Allow Extra Kwargs

Dataclasses act as code generators when working with Objects and Classes in python. It allows us to easily benefit from the dunder methods that are required when creating a class such as __init__, `__eq__`, etc . When working with external data sources, however, there may arise situations where additional parameters beyond those explicitly declared in …

Pydantic & Dataclasses – How to Allow Extra Kwargs Read More »