Get the latest tech news
Don't let dicts spoil your code
I restricted the use of dicts in my code to make it easier to follow and maintain. Here's my explanation of the benefits and advice on what you can use instead. Bonus point: what to do with all the legacy code when there's no time to eradicate all the dicts.
On top of semantic clarity, domain models provide a natural layer that decouples the exterior architecture from your application’s business logic. The dataclasses module of the standard library provides a decorator and functions for automatically adding generated special methods such as__init__() and__repr__() to your classes. Below, I provide two screenshots from PyCharm to show how adding typing information can streamline your development experience with the IDE and protect you against errors.
Or read this on Hacker News