Tin mới
maggiemoss:PEP605-implementation
GitHub CopilotWrite better code with AI
GitHub Copilot appDirect agents from issue to merge
CodespacesInstant dev environments
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
GitHub SponsorsFund open source developers
Copilot for BusinessEnterprise-grade AI features
Premium SupportEnterprise-grade 24/7 support
https://github.com/pprados/cpython/tree/PEP604
Building off of the comments left on this PR here: https://github.com/pprados/cpython/tree/PEP604
Add new type object for union types
Add basic tp_* fields to union object
Reduce code duplication when adding union types together.
Implement a POC of the specification describe in the PEP0604
Add __or__ method to _SpecialGenericAlias
Add support for NewType with unions.
Remove old code from abstract.c
Fix warning for incompatible pointer type.
Learn more about hiding disruptive comments
The reason will be displayed to describe this comment to others. Learn more.
Add support for union use in subclasses.
General cleanup, fix reference leaks, add new test for possible crashes
Add minor test for GenericAlias