Skip to content

Commit 9b765d4

Browse files
committed
Restoring one line I don't think I should have changed
1 parent fbf4117 commit 9b765d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd2/argparse_custom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def __call__(self) -> list[str]: ... # pragma: no cover
319319
class ChoicesProviderFuncWithTokens(Protocol):
320320
"""Function that returns a list of choices in support of tab completion and accepts a dictionary of prior arguments."""
321321

322-
def __call__(self, *, arg_tokens: dict[str, list[str]]) -> list[str]: ... # pragma: no cover
322+
def __call__(self, *, arg_tokens: dict[str, list[str]] = {}) -> list[str]: ... # pragma: no cover # noqa: B006
323323

324324

325325
ChoicesProviderFunc = Union[ChoicesProviderFuncBase, ChoicesProviderFuncWithTokens]

0 commit comments

Comments
 (0)