-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement PEP 655 (Required/NotRequired) #91243
Comments
PEP-655 was just accepted, so we should implement it in typing.py! We should be able to largely reuse the typing-extensions implementation. (I can't find David Foster on BPO but I'll point him to this issue.) |
I talked to @davidfstr and I offered to implement the runtime part of PEP 655 to make sure we can get it in before the feature freeze. We're going to defer the documentation to a separate PR, because it can wait until after the feature freeze. The runtime implementation conveniently already exists in typing-extensions, so I largely copied that. Co-authored-by: David Foster <david@dafoster.net>
I just merged #32419 to provide the runtime implementation. We still need documentation. |
(I'm planning to pick up the documentation piece here within the next 2 weeks) |
(I'm currently drafting typing module documentation related to Required and NotRequired. Should have first draft ready for review sometime this week.) |
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> (cherry picked from commit 711eda7) Co-authored-by: David Foster <david@dafoster.net>
Runtime implementation and documentation for Required/NotRequired is complete. 🎉 I believe this issue can be closed. |
@davidfstr congratulations! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: