gh-99509: Add `__class_getitem__` to `multiprocessing.Queue` by sobolevn · Pull Request #99511 · python/cpython · GitHub

github.com

Tin mới

sobolevn:issue-99509

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

https://github.com/python/typeshed/blob/72d1597de2dee8be369d448efc71e62922a813cc/stdlib/multiprocessing/queues.pyi#L12-L22

It is generic in typeshed as well: https://github.com/python/typeshed/blob/72d1597de2dee8be369d448efc71e62922a813cc/stdlib/multiprocessing/queues.pyi#L12-L22

multiprocessing classes SimpleQueue and Queue don't support typing in 3.11.0 #99509

gh-99509: Add `__class_getitem__` to `multiprocessing.Qeueu`

Remove, move or # noqa more TypeAlias declarations typeshed#8450

Improve multiprocessing stubs typeshed#4266

python/typeshed#4313

python/typeshed#4313 contains some more discussion from when we tried to make typeshed match cpython

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot PPC64LE RHEL7 LTO + PGO 3.x has failed when building commit ce39aaf.

Merged main into regmachine branch (

Update multiprocessing.pyi for Python3.12 python/typeshed#10279

[Feature Request] Raise explanatory exceptions when confronted with unusable unsubscripted multiprocessing.(Simple)?Queue "type hints" beartype/beartype#397

[Feature Request] Raise explanatory exceptions when confronted with unusable unsubscripted multiprocessing.(Simple)?Queue "type hints" beartype/beartype#397