Author josh.r
Recipients josh.r, sproshev
Date 2018-04-20.17:38:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1524245909.14.0.682650639539.issue33315@psf.upfronthosting.co.za>
In-reply-to
Content
None of the actual classes outside of the typing module support this either to my knowledge. You can't do:

    from collections import deque

    a: deque[int]

nor can you do:

    a: list[int]

Adding Queue to the typing module might make sense (feel free to edit it if that's what you're looking for), but unless something has changed in 3.7 (my local install is 3.6.4), it's never been legal to do what you're trying to do with queue.Queue itself with the original type, only with the special typing types that exist for that specific purpose.
History
Date User Action Args
2018-04-20 17:38:29josh.rsetrecipients: + josh.r, sproshev
2018-04-20 17:38:29josh.rsetmessageid: <1524245909.14.0.682650639539.issue33315@psf.upfronthosting.co.za>
2018-04-20 17:38:29josh.rlinkissue33315 messages
2018-04-20 17:38:29josh.rcreate