PEP 692: Using TypedDict for more precise **kwargs typing
29 May
2022
29 May
'22
9:33 p.m.
Adding support for more precise **kwargs (consisting of different types) typing using TypedDict has been a very desired feature in python community [1]. The feature proposal has been discussed both on the mailing list and at a typing meetup and received positive feedback. I've submitted PEP 692 that aims to add support for more precise **kwargs typing. The PR is available at https://github.com/python/peps/pull/2620 And the preview at https://pep-previews--2620.org.readthedocs.build/pep-0692/ - **kwargs can consist of different types - A new syntax `def foo(**kwargs: **Movie): ...` that enables the feature is introduced Please let me know what you think about it. Franek [1] https://github.com/python/mypy/issues/4441
788
Age (days ago)
867
Last active (days ago)
16 comments
10 participants
participants (10)
-
Artemis -
asafspades@gmail.com -
Eric Traut -
Franek Magiera -
Gobot1234 -
henbruas@gmail.com -
r.krupinski@gmail.com -
Rafael Krupinski -
Richard Levasseur -
Steven Troxler