[Python-ideas] PEP 484 (Type Hints) -- first draft round

Chris Angelico rosuav at gmail.com
Thu Jan 22 13:16:51 CET 2015

On Thu, Jan 22, 2015 at 10:18 PM, Cem Karan <cfkaran2 at gmail.com> wrote:
> I know I keep arguing for a slightly different syntax so that its easy to differentiate between type hints and other uses, but I do want to say that I like the proposal.  It seems quite practical to me.  Would you at least consider adding something to the proposal that makes it clear that a given annotation is a type and not something else?

The absence of a decorator that uses the annotations some other way
should make it clear that they're type hints, just as the absence of a
"global" statement should make it clear that assigned names are local
to a function.


More information about the Python-ideas mailing list