diff options
| author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-03-04 21:20:35 -0500 |
|---|---|---|
| committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-03-04 21:20:35 -0500 |
| commit | 123ac08169078cd8d232ae39102534782ac7fd87 (patch) | |
| tree | 09d000365c2fa7578cfdf0d1c9acc4be564ac082 /cmd2 | |
| parent | 5e423f89572f148c2a26f8adbaa44915be9d405a (diff) | |
| download | cmd2-git-123ac08169078cd8d232ae39102534782ac7fd87.tar.gz | |
Simplifying type hint
Diffstat (limited to 'cmd2')
| -rw-r--r-- | cmd2/cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index d124ac23..1167e529 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -186,7 +186,7 @@ def with_argument_list(*args: List[Callable], preserve_quotes: bool = False) -> """ import functools - def arg_decorator(func: Callable[[Statement], Optional[bool]]): + def arg_decorator(func: Callable): @functools.wraps(func) def cmd_wrapper(self, cmdline): lexed_arglist = parse_quoted_string(cmdline, preserve_quotes) |
