summaryrefslogtreecommitdiff
path: root/examples/python_scripting.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-09-21 10:08:05 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-09-21 10:08:05 -0400
commit0817978fcd67bc8e84369d163aff55c1a614b711 (patch)
treebf429e51da76aaae43f61d54d5eabb4c2fc5c9c9 /examples/python_scripting.py
parentb89e0b369a0d11a78503ead276da28059c54db45 (diff)
downloadcmd2-git-0817978fcd67bc8e84369d163aff55c1a614b711.tar.gz
Removed remaining type hints in docstrings
Diffstat (limited to 'examples/python_scripting.py')
-rwxr-xr-xexamples/python_scripting.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/python_scripting.py b/examples/python_scripting.py
index 069bcff5..ab5ecc2b 100755
--- a/examples/python_scripting.py
+++ b/examples/python_scripting.py
@@ -35,12 +35,12 @@ class CmdLineApp(cmd2.Cmd):
self.cwd = os.getcwd()
self.prompt = self.colorize('{!r} $ '.format(self.cwd), 'cyan')
- def postcmd(self, stop, line):
+ def postcmd(self, stop: bool, line: str) -> bool:
"""Hook method executed just after a command dispatch is finished.
- :param stop: bool - if True, the command has indicated the application should exit
- :param line: str - the command line text for this command
- :return: bool - if this is True, the application will exit after this command and the postloop() will run
+ :param stop: if True, the command has indicated the application should exit
+ :param line: the command line text for this command
+ :return: if this is True, the application will exit after this command and the postloop() will run
"""
"""Override this so prompt always displays cwd."""
self._set_prompt()