summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2019-03-14 20:06:42 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2019-03-14 20:06:42 -0400
commit0a0768977b4bd52f4615da80881e33d8ac2d4358 (patch)
tree3a807de3d5ce24824a878bc9eb1ff265286f63ad /cmd2/cmd2.py
parenteb050d7ad09a4c17f4f2ef3d59735cf87272aded (diff)
downloadcmd2-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.py2
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