[Python-Dev] Presenting PEP 692: Using TypedDict for more precise **kwargs typing

2022-07-18 Thread Franek Magiera
PEP 692 is posted. It proposes to use TypedDict for more precise **kwargs typing, so that **kwargs consisting of arguments of different types can be appropriately typed. It also proposes a grammar change and a new dunder. Here is a link to the PEP: https://peps.python.org/pep-0692/ And a link

[Python-Dev] Presenting PEP 692: Using TypedDict for more precise **kwargs typing

2022-07-14 Thread Franek Magiera
Hello, PEP 692 is posted. It proposes to use TypedDicts to type **kwargs that consist of different types. This feature has gained a lot of interest from the community (https://github.com/python/mypy/issues/4441). The PEP also proposes a grammar change and a new dunder __unpack__. Here is the