summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Lin <anselor@gmail.com>2020-09-03 12:58:18 -0400
committerEric Lin <anselor@gmail.com>2020-09-03 12:58:18 -0400
commita6f8a3508b6ea4e72003b27583f2286e17e56938 (patch)
tree07c189ec27e8df17c05cea08d646f13b0c68502b
parent36b0b75265942fe375545beb7d2d8a2c5f6f63c4 (diff)
downloadcmd2-git-fix_hint.tar.gz
fixes the type hint in examplefix_hint
-rw-r--r--examples/modular_subcommands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/modular_subcommands.py b/examples/modular_subcommands.py
index 94959349..c3c62cf2 100644
--- a/examples/modular_subcommands.py
+++ b/examples/modular_subcommands.py
@@ -38,7 +38,7 @@ class LoadableVegetables(CommandSet):
def __init__(self):
super().__init__()
- def do_arugula(self, _: cmd2.Statement):
+ def do_arugula(self, _: argparse.Namespace):
self._cmd.poutput('Arugula')
bokchoy_description = "Cut some bokchoy"
@@ -46,7 +46,7 @@ class LoadableVegetables(CommandSet):
bokchoy_parser.add_argument('style', choices=['quartered', 'diced'])
@cmd2.as_subcommand_to('cut', 'bokchoy', bokchoy_parser, help=bokchoy_description.lower())
- def cut_bokchoy(self, _: cmd2.Statement):
+ def cut_bokchoy(self, _: argparse.Namespace):
self._cmd.poutput('Bok Choy')