#dataclasses

2 posts
Development

Stop Passing Mystery Dictionaries Around: Dicts, Dataclasses and Pydantic in Python

It's 4:47 p.m. and a bug report lands in your inbox: "Order totals are wrong for some customers." You open the code and find a function that takes a dictionary called order. You scroll up. Is the pric...

2026.10.31 · 15 min read · views 1,163
Stop Passing Mystery Dictionaries Around: Dicts, Dataclasses and Pydantic in Python
Development

Your Script Crashed on a String That Should Have Been a Number

It's Tuesday afternoon and your Python script just crashed in production. The traceback is short and unfriendly: `TypeError: unsupported operand type(s) for : 'str' and 'int'`. Somewhere upstream, a J...

2026.10.06 · 14 min read · views 1,633
Your Script Crashed on a String That Should Have Been a Number