Thinking about Dict[str, Any] vs Dict[str, (some dataclass)]
Seem too easy to use the former--the type *could* hold anything-- vs there is a rigid datatype and no one has thought through what it is.
#python
Post
September 14, 2020
September 14, 2020
Thinking about Dict[str, Any] vs Dict[str, (some dataclass)]
Seem too easy to use the former--the type *could* hold anything-- vs there is a rigid datatype and no one has thought through what it is.
#python