We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b8f9bc commit ce2f27bCopy full SHA for ce2f27b
typer/_types.py
@@ -16,7 +16,7 @@ def normalize_choice(
16
# This class overrides that method to maintain the previous behavior.
17
# In Click:
18
# normed_value = choice.name if isinstance(choice, Enum) else str(choice)
19
- normed_value = choice.value if isinstance(choice, Enum) else str(choice)
+ normed_value = str(choice.value) if isinstance(choice, Enum) else str(choice)
20
21
if ctx is not None and ctx.token_normalize_func is not None:
22
normed_value = ctx.token_normalize_func(normed_value)
0 commit comments