Skip to content

Commit 0776acb

Browse files
committed
Fix error.
1 parent ba2e8c1 commit 0776acb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/_pytask/click.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def _print_options(group_or_command: Command | DefaultGroup, ctx: Context) -> No
262262
if param.metavar:
263263
opt2 += Text(f" {param.metavar}", style="metavar")
264264
elif isinstance(param.type, click.Choice):
265-
choices = "[" + "|".join([str(c.value) for c in param.type.choices]) + "]" # type: ignore[attr-defined]
265+
choices = "[" + "|".join(param.type.choices) + "]" # type: ignore[attr-defined]
266266
opt2 += Text(f" {choices}", style="metavar", overflow="fold")
267267

268268
help_text = _format_help_text(param, ctx)

0 commit comments

Comments
 (0)