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

80 views
Skip to first unread message

Franek Magiera

unread,
Jul 14, 2022, 3:54:37 PM7/14/22
to pytho...@python.org
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 link to the PEP itself - https://peps.python.org/pep-0692/
And the discussion on discuss.python.org - https://discuss.python.org/t/pep-692-using-typeddict-for-more-precise-kwargs-typing/17314

Please share your comments, thoughts and feedback!

Franek
_______________________________________________
Python-Dev mailing list -- pytho...@python.org
To unsubscribe send an email to python-d...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at https://mail.python.org/archives/list/pytho...@python.org/message/PLCNW2XR4OOKAKHEZQM7R2AYVYUXPZGW/
Code of Conduct: http://python.org/psf/codeofconduct/

Franek Magiera

unread,
Jul 18, 2022, 7:14:30 PM7/18/22
to pytho...@python.org
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 to the discuss thread: https://discuss.python.org/t/pep-692-using-typeddict-for-more-precise-kwargs-typing/17314
_______________________________________________
Python-Dev mailing list -- pytho...@python.org
To unsubscribe send an email to python-d...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at https://mail.python.org/archives/list/pytho...@python.org/message/PUABXWJQ3ARMBH5MRB36KAFLAK3GOBFP/
Reply all
Reply to author
Forward
0 new messages