diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-03-14 20:06:42 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-03-14 20:06:42 -0400 |
commit | 0a0768977b4bd52f4615da80881e33d8ac2d4358 (patch) | |
tree | 3a807de3d5ce24824a878bc9eb1ff265286f63ad /cmd2/cmd2.py | |
parent | eb050d7ad09a4c17f4f2ef3d59735cf87272aded (diff) | |
download | cmd2-git-0a0768977b4bd52f4615da80881e33d8ac2d4358.tar.gz |
Made several attributes of StatementParser immutable
The following attributes within StatementParser were converted from mutable lists to immutable tuples:
- terminators
- multiline_commands
- shortcuts
Diffstat (limited to 'cmd2/cmd2.py')
-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 d13f6335..5e0c1c07 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -555,7 +555,7 @@ class Cmd(cmd.Cmd): return self.statement_parser.allow_redirection @property - def shortcuts(self) -> List[Tuple[str, str]]: + def shortcuts(self) -> Tuple[Tuple[str, str]]: """Read-only property to access the shortcuts stored in the StatementParser.""" return self.statement_parser.shortcuts |