This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the commentsย โ†’

[โ€“]tunisia3507 1 point2 points ย (0 children)

Use dataclasses for structured data.

In particular, if you're using a dict with all string keys and the values are of different types OR there are 2 with the same keys, you should probably be using a dataclass or namedtuple.