On 2/09/20 3:20 am, Christopher Barker wrote:
I think that type hints are used in specific places, and thus the
interpreter could know if a given [] was a type hint or an indexing
operation, and thus could dispatch it differently.
I don't think so. We need to be able to do things like
WibbleCollection = List[Wibble]
def f(wibs : WibbleCollection):
...
--
Greg
_______________________________________________
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/KSAPAEF7ARPYRCLWL6T7MYZCAVFOWNCD/
Code of Conduct: http://python.org/psf/codeofconduct/