Skip to content

gh-136859: Improve StrEnum docs #136864

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

Merged
merged 3 commits into from
Jul 21, 2025
Merged

gh-136859: Improve StrEnum docs #136864

merged 3 commits into from
Jul 21, 2025

Conversation

nachocab
Copy link
Contributor

@nachocab nachocab commented Jul 20, 2025

  • Replace str(StrEnum.member) with something that doesn't seem seem like member is a method of the StrEnum class.
  • Fix quoting/emphasis inconsistency and re-wrap the paragraph to 80 characters.
  • Add an illustrative example (to match IntEnum)

Fixes #136859


📚 Documentation preview 📚: https://cpython-previews--136864.org.readthedocs.build/

Nacho Caballero and others added 3 commits July 20, 2025 15:56
Co-authored-by: Antonio Spadaro <ilovelinux@users.noreply.github.com>
@ethanfurman ethanfurman added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Jul 21, 2025
@ethanfurman ethanfurman merged commit 5f9e38f into python:main Jul 21, 2025
36 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Jul 21, 2025
@miss-islington-app
Copy link

Thanks @nachocab for the PR, and @ethanfurman for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 21, 2025
(cherry picked from commit 5f9e38f)

Co-authored-by: Nacho Caballero <nachocab@gmail.com>
Co-authored-by: Nacho Caballero <nacho.caballero@astrazeneca.com>
Co-authored-by: Antonio Spadaro <ilovelinux@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 21, 2025
(cherry picked from commit 5f9e38f)

Co-authored-by: Nacho Caballero <nachocab@gmail.com>
Co-authored-by: Nacho Caballero <nacho.caballero@astrazeneca.com>
Co-authored-by: Antonio Spadaro <ilovelinux@users.noreply.github.com>
@bedevere-app
Copy link

bedevere-app bot commented Jul 21, 2025

GH-136936 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Jul 21, 2025
@bedevere-app
Copy link

bedevere-app bot commented Jul 21, 2025

GH-136937 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jul 21, 2025
hugovk pushed a commit that referenced this pull request Jul 22, 2025
Co-authored-by: Nacho Caballero <nachocab@gmail.com>
Co-authored-by: Nacho Caballero <nacho.caballero@astrazeneca.com>
Co-authored-by: Antonio Spadaro <ilovelinux@users.noreply.github.com>
hugovk pushed a commit that referenced this pull request Jul 22, 2025
Co-authored-by: Nacho Caballero <nachocab@gmail.com>
Co-authored-by: Nacho Caballero <nacho.caballero@astrazeneca.com>
Co-authored-by: Antonio Spadaro <ilovelinux@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news sprint
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Improve StrEnum documentation
4 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy