Skip to content

Commit

Permalink
🎨 rename enum type
Browse files Browse the repository at this point in the history
  • Loading branch information
Wytamma committed Sep 26, 2024
1 parent 9a8fffa commit be14959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/snk_cli/dynamic_typer.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def _create_cli_parameter(self, option: Option):
if option.type is Enum or option.choices:
if not option.choices:
raise ValueError(f"Enum type {option.name} requires choices to be defined.")
annotation_type = Enum(f'{option.name}Enum', {e: e for e in option.choices})
annotation_type = Enum(f'{option.name}', {e: e for e in option.choices})
if default:
try:
default = annotation_type(default)
Expand Down

0 comments on commit be14959

Please sign in to comment.