summaryrefslogtreecommitdiff
path: root/cmd2
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-09-05 02:58:20 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2020-09-05 02:58:20 -0400
commita8d3ab2f64c3f8d76e687ecffdfd2211fc61b158 (patch)
tree7f93d8194bd69ef6258d8e452be1aa9ddbaa8648 /cmd2
parent6bd2f2cb5315795d037de349507a641c733481af (diff)
downloadcmd2-git-a8d3ab2f64c3f8d76e687ecffdfd2211fc61b158.tar.gz
Added type hint
Diffstat (limited to 'cmd2')
-rw-r--r--cmd2/cmd2.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index cde3892b..3e9ea9bc 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -2022,8 +2022,7 @@ class Cmd(cmd.Cmd):
# we need to run the finalization hooks
raise EmptyStatement
- # This will be a utils.RedirectionSavedState object for the command
- redir_saved_state = None
+ redir_saved_state = None # type: Optional[utils.RedirectionSavedState]
try:
# Get sigint protection while we set up redirection