I like this rule: https://hackeryarn.com/post/maps/
"If we know the keys of a map, we should not use a map. Instead, we should use a struct, TypedDict, object"
I'm not always following it, especially for small scripts, but eventually, dataclasses and pydantic models are easier to follow. And LLM like them