diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2022-12-27 04:50:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-27 04:50:55 (GMT) |
commit | ce39aaffeef9aa8af54a8554fe7a5609a6bba471 (patch) | |
tree | 53c1d93a4eccf9536a3b2c38d53923cbca5cf517 /Lib/multiprocessing | |
parent | 199507b81a302ea19f93593965b1e5088195a6c5 (diff) | |
download | cpython-ce39aaffeef9aa8af54a8554fe7a5609a6bba471.zip cpython-ce39aaffeef9aa8af54a8554fe7a5609a6bba471.tar.gz cpython-ce39aaffeef9aa8af54a8554fe7a5609a6bba471.tar.bz2 |
gh-99509: Add `__class_getitem__` to `multiprocessing.queues.Queue` (#99511)
Diffstat (limited to 'Lib/multiprocessing')
-rw-r--r-- | Lib/multiprocessing/queues.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/multiprocessing/queues.py b/Lib/multiprocessing/queues.py index f37f114..daf9ee9 100644 --- a/Lib/multiprocessing/queues.py +++ b/Lib/multiprocessing/queues.py @@ -280,6 +280,8 @@ class Queue(object): import traceback traceback.print_exc() + __class_getitem__ = classmethod(types.GenericAlias) + _sentinel = object() |