Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kiancross authored Jan 11, 2024
1 parent a56751e commit 29300da
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions questionary/prompts/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,7 @@ def select(
raise ValueError("A list of choices needs to be provided.")

if use_shortcuts:
real_len_of_choices = sum(
1 for c in choices if not isinstance(c, Separator)
)
real_len_of_choices = sum(1 for c in choices if not isinstance(c, Separator))
if real_len_of_choices > len(InquirerControl.SHORTCUT_KEYS):
raise ValueError(
"A list with shortcuts supports a maximum of {} "
Expand Down

0 comments on commit 29300da

Please sign in to comment.