better-functools: Python functional fun| blog.changs.co.uk
better-functools: Python functional fun| blog.changs.co.uk
PEP 589 defines the structural type TypedDict for dictionaries with a fixed set of keys. As TypedDict is a mutable type, it is difficult to correctly annotate methods which accept read-only parameters in a way that doesn’t prevent valid inputs.| Python Enhancement Proposals (PEPs)
PEP 484 defines the type Dict[K, V] for uniform dictionaries, where each value has the same type, and arbitrary key values are supported. It doesn’t properly support the common pattern where the type of a dictionary value depends on the string value of...| Python Enhancement Proposals (PEPs)