python / peps

Python Enhancement Proposals
https://peps.python.org
4.35k stars 1.5k forks source link

PEP 747: Rephrase rules for | operator. Remove ability to assign TypeExpr[X | Y | ...] to UnionType. #3876

Open davidfstr opened 1 month ago

davidfstr commented 1 month ago

Also:



📚 Documentation preview 📚: https://pep-previews--3876.org.readthedocs.build/

davidfstr commented 1 month ago

When you're ready to "hand the pen to someone else", I'm willing to do a revised draft that addresses this issue and others

Noted. In the meantime, I'll aim to proceed with a simpler design for dealing with the | operator, the last remaining major point of feedback besides the name of the concept. See the replacement PR for that simpler design.

other[ issues] that I still see as being problematic in latest draft

Speak now if you see significant issues beyond the two issues I mentioned above. From my POV this PEP is at a 90% point, so I'm not expecting to discover much in the way of new issues.