[Python-ideas] Re: More natural type hints for built-in containers

2021-07-28 Thread Ignacio Pickering
Ahh, I see, yes, that actually makes a lot of sense. ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at

[Python-ideas] More natural type hints for built-in containers

2021-07-27 Thread Ignacio Pickering
Currently type hints for built-in containers are, in my opinion, less succint than required. I suspect it is probably not very difficult for a type checker to interpret something like this for example: var1: {str: (int, int)} = {"label": (1, 2)} var2: {str} = {"other_label"} def function(param1