We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a2de44 commit 93be6d2Copy full SHA for 93be6d2
cmd2/argparse_completer.py
@@ -721,10 +721,11 @@ def _complete_arg(
721
choices_func = arg_choices.choices_provider
722
if isinstance(choices_func, ChoicesProviderFuncWithTokens):
723
completion_items = choices_func(*args, **kwargs)
724
- else:
+ else: # pragma: no cover
725
# This won't hit because runtime checking doesn't check function argument types and will always
726
# resolve true above.
727
completion_items = choices_func(*args)
728
+ # else case is already covered above
729
else:
730
completion_items = arg_choices
731
0 commit comments