We drew up a draft syntax to clarify the three styles that have been discussed 
in typing-sig:
- shorthand syntax, which supports exactly what Callable currently supports
- XOR syntax, which would allow a def-like style in addition to shorthand
- hybrid syntax, which extends shorthand to support named, default-value, and 
variadic args

https://docs.google.com/document/d/1oCRBAAPs3efTYoIRSUwWLtOr1AUVqc8OCEYn4vKYjGI/edit?usp=sharing

Within the discussion in typing-sig,
- everyone would like to see support for at least shorthand
- a little over half would like to have the more complex hybrid option
- I don't think anyone has XOR as their first choice, but several of us think 
it might be better than hybrid
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/P5R6P7NLFMCUOJHZL3K2VAQBFZMVGMR6/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to