Skip to content

Commit 93be6d2

Browse files
committed
Added back a pragma: no cover comment that accidentally got dropped
1 parent 7a2de44 commit 93be6d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd2/argparse_completer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,10 +721,11 @@ def _complete_arg(
721721
choices_func = arg_choices.choices_provider
722722
if isinstance(choices_func, ChoicesProviderFuncWithTokens):
723723
completion_items = choices_func(*args, **kwargs)
724-
else:
724+
else: # pragma: no cover
725725
# This won't hit because runtime checking doesn't check function argument types and will always
726726
# resolve true above.
727727
completion_items = choices_func(*args)
728+
# else case is already covered above
728729
else:
729730
completion_items = arg_choices
730731

0 commit comments

Comments
 (0)