Skip to content

Commit 279861d

Browse files
committed
Made type hint for descriptive_headers in _add_argument_wrapper() consistent with
its type hint in _action_get_descriptive_headers() and _action_set_descriptive_headers().
1 parent fded84c commit 279861d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd2/argparse_completer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
from .styles import Cmd2Style
4040

4141
# If no descriptive headers are supplied, then this will be used instead
42-
DEFAULT_DESCRIPTIVE_HEADERS: Sequence[str | Column] = ('Description',)
42+
DEFAULT_DESCRIPTIVE_HEADERS: Sequence[str | Column] = ['Description']
4343

4444
# Name of the choice/completer function argument that, if present, will be passed a dictionary of
4545
# command line tokens up through the token being completed mapped to their argparse destination name.

cmd2/argparse_custom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ def _add_argument_wrapper(
804804
choices_provider: ChoicesProviderFunc | None = None,
805805
completer: CompleterFunc | None = None,
806806
suppress_tab_hint: bool = False,
807-
descriptive_headers: list[Column | str] | None = None,
807+
descriptive_headers: Sequence[str | Column] | None = None,
808808
**kwargs: Any,
809809
) -> argparse.Action:
810810
"""Wrap ActionsContainer.add_argument() which supports more settings used by cmd2.

0 commit comments

Comments
 (0)