gh-112328: Make EnumDict usable on its own and document it#123669
Merged
ethanfurman merged 13 commits intopython:mainfrom Dec 20, 2024
Merged
gh-112328: Make EnumDict usable on its own and document it#123669ethanfurman merged 13 commits intopython:mainfrom
ethanfurman merged 13 commits intopython:mainfrom
Conversation
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Member
Author
|
@ethanfurman, could you clarify how |
Member
Author
|
@ethanfurman, could you clarify how |
ethanfurman
approved these changes
Dec 20, 2024
|
Thanks @encukou for the PR, and @ethanfurman for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
|
Sorry, @encukou and @ethanfurman, I could not cleanly backport this to |
|
|
GH-128142 is a backport of this pull request to the 3.13 branch. |
srinivasreddy
pushed a commit
to srinivasreddy/cpython
that referenced
this pull request
Dec 23, 2024
…honGH-123669) Co-authored-by: Rafi <rafi.promit@gmail.com> Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua> Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
ethanfurman
added a commit
that referenced
this pull request
Dec 24, 2024
srinivasreddy
pushed a commit
to srinivasreddy/cpython
that referenced
this pull request
Jan 8, 2025
…honGH-123669) Co-authored-by: Rafi <rafi.promit@gmail.com> Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua> Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a continuation of @u2rafi's PR #121720, with @AA-Turner's review comments addressed.
@ethanfurman, I noticed
EnumDictrelies on a private attribute, so I made that attribute optional, and added tests.Is this what you intended when making
EnumDictpublic? Or was it more for typing andisinstancerather than using it in custom__prepare__?📚 Documentation preview 📚: https://cpython-previews--123669.org.readthedocs.build/