On 11/6/2017 1:40 PM, Barry Warsaw wrote:
On Nov 6, 2017, at 08:02, Victor Stinner <victor.stin...@gmail.com> wrote:

While discussions on the typing module are still hot, what do you
think of allowing annotations in the standard libraries, but limited
to a few basic types:

I’m still -1 on adding annotations to the stdlib, despite their increasing use 
out in the wild, for the reasons that Steve and David have pointed out.  (Let’s 
let Eric be the one that breaks the mold with data classes.  Then we can blame 
him!)

Thanks for volunteering me!

Note that dataclasses completely ignores the annotations (they could all be None, for all I care), except for the one specific case of ClassVar. And that's still up for discussion, see https://github.com/ericvsmith/dataclasses/issues/61.

Eric.

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to