[Python-ideas] Proposal: Use mypy syntax for function annotations
Greg Ewing
greg.ewing at canterbury.ac.nz
Sun Aug 24 03:11:34 CEST 2014
Georg Brandl wrote:
> Another thought is whether, assuming
>
> class MyList(list):
> ...
>
> the type "MyList[int]" would do the expected thing. (And if not,
> how you would write the correct type generation code.)
I would expect that to be a error, unless MyList were
declared as accepting a type parameter, using whatever
means is decided on for that in the type language.
--
Greg
More information about the Python-ideas
mailing list