diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-06-10 15:26:39 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-06-10 15:26:39 -0400 |
commit | 6ba8d96321bf4052105f6f7fb6027d9e7073ea6c (patch) | |
tree | 905201d4fbea778705871d591810b0ae3258d782 /cmd2/pyscript_bridge.py | |
parent | f9de7370c09b382095e4dbde3ff2b0af2f391566 (diff) | |
download | cmd2-git-6ba8d96321bf4052105f6f7fb6027d9e7073ea6c.tar.gz |
Added yet more type hinting
Diffstat (limited to 'cmd2/pyscript_bridge.py')
-rw-r--r-- | cmd2/pyscript_bridge.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/pyscript_bridge.py b/cmd2/pyscript_bridge.py index 7e7b940d..9353e611 100644 --- a/cmd2/pyscript_bridge.py +++ b/cmd2/pyscript_bridge.py @@ -40,7 +40,7 @@ class CommandResult(namedtuple_with_defaults('CmdResult', ['stdout', 'stderr', ' class CopyStream(object): """Copies all data written to a stream""" - def __init__(self, inner_stream, echo: bool = False): + def __init__(self, inner_stream, echo: bool = False) -> None: self.buffer = '' self.inner_stream = inner_stream self.echo = echo @@ -212,7 +212,7 @@ class ArgparseFunctor: def process_flag(action, value): if isinstance(action, argparse._CountAction): if isinstance(value, int): - for c in range(value): + for _ in range(value): cmd_str[0] += '{} '.format(action.option_strings[0]) return else: |