Skip to content

[Enhancement] Avoid using the .value attribute on StrEnum #18895

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

Open
5 tasks done
laipz8200 opened this issue Apr 27, 2025 · 0 comments
Open
5 tasks done

[Enhancement] Avoid using the .value attribute on StrEnum #18895

laipz8200 opened this issue Apr 27, 2025 · 0 comments
Assignees
Labels
💪 enhancement New feature or request

Comments

@laipz8200
Copy link
Member

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

Use the members of StrEnum directly, instead of the .value attribute. Because the members of StrEnum are already strings, using them directly is more concise and avoids unnecessary attribute access, making the code easier to read. For example, use MyEnum.VALUE instead of MyEnum.VALUE.value.

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant