Re:Why I'm still using Python
by dragonwriter on Friday December 30, 2022 @06:59PM
(#34191657)
> You do have to embrace types though; if you have a dictly typed program where everything is a Dict[str, Any], then putting that in annotations isn’t going to be very helpful; converting the dicts to named tuples or dataclasses is.
Or even just TypedDict, which often works without any changes besides annotations.
Or even just TypedDict, which often works without any changes besides annotations.