Chris Angelico, you have a good point. An alternative solution that would 
achieve similar or even better results in terms of simplification would be not 
creating `fun` as a keyword and allowing developers to create functions in 
Python without a keyword (like in C-family). That way, a new proposal would be 
changing:

>>> from typing import Callable
>>> def x(method: Callable[[int, dict], None]) -> None:
... pass
...
>>> type(x)
<class 'function'>

Into this:

>>> x(method: fun[int, dict] -> None) -> None:
... pass
...
>>> type(x)
<class 'fun'>

What do you think?
_______________________________________________
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 
https://mail.python.org/archives/list/python-ideas@python.org/message/3HCJABK5B3BGIJMHKQ5TQOANCLOAAYGG/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to