Skip to content

Commit a8d3ab2

Browse files
committed
Added type hint
1 parent 6bd2f2c commit a8d3ab2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd2/cmd2.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2022,8 +2022,7 @@ def onecmd_plus_hooks(self, line: str, *, add_to_history: bool = True,
20222022
# we need to run the finalization hooks
20232023
raise EmptyStatement
20242024

2025-
# This will be a utils.RedirectionSavedState object for the command
2026-
redir_saved_state = None
2025+
redir_saved_state = None # type: Optional[utils.RedirectionSavedState]
20272026

20282027
try:
20292028
# Get sigint protection while we set up redirection

0 commit comments

Comments
 (0)