Skip to content

Commit ce2f27b

Browse files
committed
🚨 Update types for mypy
1 parent 3b8f9bc commit ce2f27b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typer/_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def normalize_choice(
1616
# This class overrides that method to maintain the previous behavior.
1717
# In Click:
1818
# normed_value = choice.name if isinstance(choice, Enum) else str(choice)
19-
normed_value = choice.value if isinstance(choice, Enum) else str(choice)
19+
normed_value = str(choice.value) if isinstance(choice, Enum) else str(choice)
2020

2121
if ctx is not None and ctx.token_normalize_func is not None:
2222
normed_value = ctx.token_normalize_func(normed_value)

0 commit comments

Comments
 (0)