[Python-Dev] Allow annotations using basic types in the stdlib?

Eric V. Smith eric at trueblade.com
Mon Nov 6 14:21:16 EST 2017

On 11/6/2017 1:40 PM, Barry Warsaw wrote:
> On Nov 6, 2017, at 08:02, Victor Stinner <victor.stinner at 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 


More information about the Python-Dev mailing list