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

Semyon Proshev report at bugs.python.org
Mon Apr 23 08:29:41 EDT 2018


Semyon Proshev <s-proshev at ya.ru> added the comment:

I had been thinking about `__class_getitem__` when the issue were created.

I suspected it's not difficult to implement and it follows PEP 560.
So I'm +1 for `__class_item__`, quotes and postponed evaluation are also ok.

----------

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


More information about the Python-bugs-list mailing list