diff options
-rw-r--r-- | cmd2/parsing.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd2/parsing.py b/cmd2/parsing.py index 67e97c2b..875e54c9 100644 --- a/cmd2/parsing.py +++ b/cmd2/parsing.py @@ -5,7 +5,7 @@ import os import re import shlex -from typing import List, Tuple, Dict, Union +from typing import List, Tuple, Dict from . import constants from . import utils @@ -106,13 +106,13 @@ class Statement(str): return rtn @property - def arg_list(self) -> Union[List[str], None]: + def arg_list(self) -> List[str]: """ Returns a list of the arguments to the command, not including any output redirection or terminators. quoted arguments remain quoted. """ if self.args is None: - return None + return [] return self.args.split() |