[Python-Dev] PEP 589 discussion (TypedDict) happening at typing-sig@
jlehtosalo at gmail.com
Mon Apr 15 12:42:23 EDT 2019
I submitted PEP 589 (TypedDict: Type Hints for Dictionaries with a Fixed
Set of Keys) for discussion to typing-sig .
Here's an excerpt from the abstract of the PEP:
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 the key. This PEP proposes a type
constructor typing.TypedDict to support the use case where a dictionary
object has a specific set of string keys, each with a value of a specific
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev