It sounds then like this PEP is Withdrawn: * Introducing new syntax/grammar has a high barrier to overcome, and the benefits of adding `x?` do not meet that bar (in the opinion of the Author & Sponsor) when `x|None` is short enough to write and more clear * Using `x?` to mean `x|None` is inconsistent with TypeScript where there it roughly means `NotRequired[x]`. Such inconsistency would likely confuse folks coming from TypeScript, a very popular language. Perhaps it would be useful to mark the PEP as Withdrawn, and provide a short paragraph at the top of the PEP summarizing why? Since I pretty much just wrote that paragraph with the bulleted list above 🙃, I'd be happy to make the edits myself if there are no objections. -- David Foster | Seattle, WA, USA Contributor to TypedDict, mypy, and Python's typing system On 3/30/22 1:53 PM, Pradeep Kumar Srinivasan wrote:
The original author (Maggie Moss) isn't working on this anymore. Pyre is no longer in favor of adding new syntax for this because of concerns that Guido mentioned (`int | None` already exists, etc.).
David: If you or others feel strongly about this, however, feel free to commandeer the PEP. _______________________________________________ Typing-sig mailing list -- typing-sig@python.org To unsubscribe send an email to typing-sig-leave@python.org https://mail.python.org/mailman3/lists/typing-sig.python.org/ Member address: davidfstr@gmail.com