If you've ever gone through the Mypy docs, you might have seen the section on TypedDict. The section goes on to introduce the feature by stating: Python programs often use dictionaries with string keys to represent objects. [...] you can use a TypedDict to give a precise type for objects like