On Sun, 3 May 2020 14:58:41 -0700 Andras Tantos <[email protected]> wrote: > > 1. With the recent type-hint support, the feature could be made way more > descriptive if this PEP got implemented. > > For example, instead of doing the following: > > def func(in: Dict[str, int]) > > one could write: > > def func(in: Dict[key=str, value=int])
Of course, that's why I originally suggested that `Dict[...]` should be spelled `Dict(...)` instead. Regards Antoine. _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/WB66IID6GTMG4CBD4US7A56HYDJOBZNN/ Code of Conduct: http://python.org/psf/codeofconduct/
