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

Guido van Rossum report at bugs.python.org
Sun Apr 22 22:36:16 EDT 2018


Guido van Rossum <guido at python.org> added the comment:

Disagree strongly. More later.

On Sun, Apr 22, 2018, 18:41 Raymond Hettinger <report at bugs.python.org>
wrote:

>
> 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>
> _______________________________________
>

----------

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


More information about the Python-bugs-list mailing list