We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60a6ec1 commit 1812cfeCopy full SHA for 1812cfe
cmd2/completion.py
@@ -7,6 +7,7 @@
7
Collection,
8
Iterable,
9
Iterator,
10
+ Mapping,
11
Sequence,
12
)
13
from dataclasses import (
@@ -270,7 +271,7 @@ def all_display_numeric(items: Collection[CompletionItem]) -> bool:
270
271
#############################################
272
273
# Represents the parsed tokens from argparse during completion
-ArgTokens: TypeAlias = dict[str, list[str]]
274
+ArgTokens: TypeAlias = Mapping[str, Sequence[str]]
275
276
# Unbound choices_provider function types used by argparse-based completion.
277
# These expect a Cmd or CommandSet instance as the first argument.
0 commit comments