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

Brett Cannon brett at python.org
Thu Jan 22 15:52:34 CET 2015

On Thu Jan 22 2015 at 7:49:38 AM Chris Angelico <rosuav at gmail.com> wrote:

> On Thu, Jan 22, 2015 at 11:43 PM, Ed Kellett <edk141 at gmail.com> wrote:
> > It's kind of like enumerations, except there aren't any proposals
> > threatening to punish you for not using them.
> What's threatening to punish you for not using annotations?

If you read one of Ed's earlier emails it sounds like he thinks you need
the @no_type_hints decorator even if you don't provide *any* annotations,
which is incorrect (the decorator is only to signal that annotations you
did specify  are not type hints; not specifying any annotations signals the
same thing). Heck, the decorator isn't even technically necessary if the
linter or IDE you are using that can process the type hints chooses to
treat unrecognized annotations as Any instead of throwing an error or
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150122/ae226d3e/attachment.html>

More information about the Python-ideas mailing list