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 sproshev
Recipients sproshev
Date 2018-04-19.12:02:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1524139376.68.0.682650639539.issue33315@psf.upfronthosting.co.za>
In-reply-to
Content
from queue import Queue

a: Queue[int]

This code throws a TypeError in runtime.
But its pyi stub allows to use it in such a way (https://github.com/python/typeshed/blob/master/stdlib/3/queue.pyi)

I'd suggest to update classes in queue module to allow them to be used in type annotations.
History
Date User Action Args
2018-04-19 12:02:56sproshevsetrecipients: + sproshev
2018-04-19 12:02:56sproshevsetmessageid: <1524139376.68.0.682650639539.issue33315@psf.upfronthosting.co.za>
2018-04-19 12:02:56sproshevlinkissue33315 messages
2018-04-19 12:02:56sproshevcreate