mirror of
https://github.com/python/cpython.git
synced 2025-07-12 05:45:15 +00:00
gh-99509: Add __class_getitem__
to multiprocessing.queues.Queue
(#99511)
This commit is contained in:
parent
199507b81a
commit
ce39aaffee
3 changed files with 9 additions and 1 deletions
|
@ -280,6 +280,8 @@ class Queue(object):
|
|||
import traceback
|
||||
traceback.print_exc()
|
||||
|
||||
__class_getitem__ = classmethod(types.GenericAlias)
|
||||
|
||||
|
||||
_sentinel = object()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue