[issue38978] Implement __class_getitem__ for Future, Task, Queue

Ivan Levkivskyi report at bugs.python.org
Thu Dec 5 13:04:30 EST 2019


Ivan Levkivskyi <levkivskyi at gmail.com> added the comment:

I see the point in using ``__class_getitem__`` in Python classes too, we can probably start using a dummy method returning class object itself now. Also PEP 585 already has a long list of candidates for "proper" ``__class_getitem__`` support. Maybe we can add these classes to that list? Maybe it would make sense to also have ``PathLike`` there?

----------
nosy: +lukasz.langa

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


More information about the Python-bugs-list mailing list