Skip to content

Commit

Permalink
Fix list command autocompletion crashing
Browse files Browse the repository at this point in the history
The issue was that the 28f7816
made the list command choices a tuple instead of set. The assertion
checked for a set.
  • Loading branch information
igo95862 committed Dec 23, 2024
1 parent df88ee2 commit b480514
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/bubblejail/bubblejail_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ def iter_subcommand_options(


def iter_list_choices() -> Iterable[str]:
choices = BUBBLEJAIL_CMD["list"]["add_argument"]["list_what"]["choices"]
assert isinstance(choices, set)
return choices
yield from BUBBLEJAIL_CMD["list"]["add_argument"]["list_what"]["choices"]


def _extra_args_converter(command_sequence: list[str]) -> Generator[str, None, None]:
Expand Down

0 comments on commit b480514

Please sign in to comment.