This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients gvanrossum, rhettinger
Date 2016-12-20.00:55:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1482195355.35.0.708664302225.issue29011@psf.upfronthosting.co.za>
In-reply-to
Content
I don't recall exactly what happened here, but I think it was left out during formulation of PEP 484 because it's not an ABC.  IIRC originally we only wanted to include builtins and ABCs.  But we changed that subsequently to include e.g. DefaultDict.

I suppose we should change this now, but the cat is out of the bag for 3.6.0 and I would prefer not to change typing.py in any way between 3.6.0 and 3.5.3, so the best we could do would be to add it to 3.6.1 and 3.5.4 (whenever that will be).

In the meantime collections.deque is generic, but that's only helpful in type comments, not in annotations.

In a sense I wish we hadn't put typing.py in the stdlib, it would have been much simpler to fix this kind of issue.  OTOH there are also advantages to having it in the stdlib, and anyways, it's too late to change, so we'll just have to suck it up (I certainly am).
History
Date User Action Args
2016-12-20 00:55:55gvanrossumsetrecipients: + gvanrossum, rhettinger
2016-12-20 00:55:55gvanrossumsetmessageid: <1482195355.35.0.708664302225.issue29011@psf.upfronthosting.co.za>
2016-12-20 00:55:55gvanrossumlinkissue29011 messages
2016-12-20 00:55:55gvanrossumcreate