[Python-ideas] PEP 484 (Type Hints) -- first draft round
skip.montanaro at gmail.com
Wed Jan 21 17:45:01 CET 2015
On Wed, Jan 21, 2015 at 10:38 AM, Matt <boehm.matthew at gmail.com> wrote:
> What do people think about allowing the annotation to be a function that
> returns the type? Is this too complicated to understand/implement?
I think that since type hints have to be analyzed at compile time,
that execution of arbitrary Python code is a non-starter. Smarter
folks than me may well see a way this could happen though.
More information about the Python-ideas