Skip to content

feature: option to not show enum values #309

@Ravencentric

Description

@Ravencentric

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:

# 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:

Image

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.

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions