[New-bugs-announce] [issue33315] Allow queue.Queue to be used in type annotations
report at bugs.python.org
Thu Apr 19 08:02:56 EDT 2018
New submission from Semyon Proshev <s-proshev at ya.ru>:
from queue import Queue
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.
components: Library (Lib)
title: Allow queue.Queue to be used in type annotations
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce