Skip to content
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

Use repr when Enum has custom __repr__ impl #11879

Merged
merged 4 commits into from
Jan 16, 2024

Conversation

SilverRainZ
Copy link
Contributor

@SilverRainZ SilverRainZ commented Jan 13, 2024

Subject: Use repr when Enum has custom repr imp

Feature or Bugfix

  • Feature

Purpose

Allow users to control representation of Enum inside objdesc by repr.

Detail

Relates

@AA-Turner
Copy link
Member

Can you add a CHANGES entry?

@SilverRainZ
Copy link
Contributor Author

Sure, updated. But I don't known how to fix mypy lint error, it seems like python/mypy#14123

@AA-Turner AA-Turner merged commit 1b39b20 into sphinx-doc:master Jan 16, 2024
22 checks passed
@rhshadrach
Copy link

Thanks @SilverRainZ!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 16, 2024
@AA-Turner AA-Turner added this to the 7.3.0 milestone Jul 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow control over Enum repr
3 participants