Skip to content

Commit 77b8794

Browse files
committed
Merge branch 'main' into refactor_argparse_custom
2 parents 2d2319b + b726c52 commit 77b8794

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ jobs:
4040

4141
- name: Upload test results to Codecov
4242
if: ${{ !cancelled() }}
43-
uses: codecov/codecov-action@v5
43+
uses: codecov/codecov-action@v6
4444
with:
4545
flags: python${{ matrix.python-version }}
4646
name: codecov-umbrella-test-results
4747
report_type: test_results
4848
token: ${{ secrets.CODECOV_TOKEN }}
4949
- name: Upload coverage to Codecov
50-
uses: codecov/codecov-action@v5
50+
uses: codecov/codecov-action@v6
5151
with:
5252
env_vars: OS,PYTHON
5353
fail_ci_if_error: true

cmd2/argparse_completer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def consume_argument(arg_state: _ArgumentState, arg_token: str) -> None:
361361
action = remaining_positionals.popleft()
362362

363363
# Are we at a subcommand? If so, forward to the matching completer
364-
if action == self._subcommand_action:
364+
if self._subcommand_action is not None and action == self._subcommand_action:
365365
if token in self._subcommand_action.choices:
366366
# Merge self._parent_tokens and consumed_arg_values
367367
parent_tokens = {**self._parent_tokens, **consumed_arg_values}

cmd2/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def __init__(
7474
settable_object: object,
7575
*,
7676
settable_attrib_name: str | None = None,
77-
onchange_cb: Callable[[str, _T, _T], Any] | None = None,
77+
onchange_cb: Callable[[str, Any, Any], Any] | None = None,
7878
choices: Iterable[Any] | None = None,
7979
choices_provider: ChoicesProviderUnbound[CmdOrSet] | None = None,
8080
completer: CompleterUnbound[CmdOrSet] | None = None,

0 commit comments

Comments
 (0)