Skip to content

Commit 1812cfe

Browse files
committed
Made the ArgTokens type alias consistent with the cmd2.Cmd methods using it
1 parent 60a6ec1 commit 1812cfe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd2/completion.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
Collection,
88
Iterable,
99
Iterator,
10+
Mapping,
1011
Sequence,
1112
)
1213
from dataclasses import (
@@ -270,7 +271,7 @@ def all_display_numeric(items: Collection[CompletionItem]) -> bool:
270271
#############################################
271272

272273
# Represents the parsed tokens from argparse during completion
273-
ArgTokens: TypeAlias = dict[str, list[str]]
274+
ArgTokens: TypeAlias = Mapping[str, Sequence[str]]
274275

275276
# Unbound choices_provider function types used by argparse-based completion.
276277
# These expect a Cmd or CommandSet instance as the first argument.

0 commit comments

Comments
 (0)