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 -- 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/KSAPAEF7ARPYRCLWL6T7MYZCAVFOWNCD/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to