[issue33315] Allow queue.Queue to be used in type annotations

Raymond Hettinger report at bugs.python.org
Sun Apr 22 21:41:08 EDT 2018


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

> Another solution may be to add a simple `__class_getitem__` to `Queue` 
> that will just return `cls`

I don't think it makes sense to let typing considerations start to spill into the rest of the standard library.  Either add support to typing or not.

----------
nosy: +rhettinger

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33315>
_______________________________________


More information about the Python-bugs-list mailing list