ITADN

feature: option to not show enum values

#309OpenRavencentric 创建于 2025-09-10
feature
R
Ravencentriccommented
### Is your feature request related to a problem? Please describe. I have a Enum subclass that behaves identically to a `StrEnum` and that's all users need to know: ```py # Category behaves just like a `StrEnum` >>> cat = Category.ANIME_ENGLISH_TRANSLATED >>> f"{cat}" 'Anime - English-translated' >>> cat.value 'Anime - English-translated' >>> cat.name 'ANIME_ENGLISH_TRANSLATED' >>> ``` The fact that internally the value is a `tuple` is an implementation detail that I don't want showing up in docs: <img width="789" height="503" alt="Image" src="https://github.com/user-attachments/assets/eca392d6-189f-4a6c-a7a6-a05cf7374e7b" /> ### Describe the solution you'd like I would love to have an option to not show enum values. ### Describe alternatives you've considered Disable enum members all together.
5 条评论