[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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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__.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.