summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-04-19 23:52:51 -0700
committerTodd Leonhardt <todd.leonhardt@gmail.com>2018-04-19 23:52:51 -0700
commitda426b267921598eb9a11b9b4d5adbd64cbba8c5 (patch)
tree2c06a51e26286ff0eb3502934875d9148b98d60d /examples
parent58fdd089cc064e71502dc1f094fd906d30523886 (diff)
downloadcmd2-git-da426b267921598eb9a11b9b4d5adbd64cbba8c5.tar.gz
Started adding type hints
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/tab_autocompletion.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/tab_autocompletion.py b/examples/tab_autocompletion.py
index 9741dce2..c704908f 100755
--- a/examples/tab_autocompletion.py
+++ b/examples/tab_autocompletion.py
@@ -214,7 +214,6 @@ class TabCompleteExample(cmd2.Cmd):
'\n '.join(ep_list)))
print()
-
media_parser = argparse_completer.ACArgumentParser(prog='media')
media_types_subparsers = media_parser.add_subparsers(title='Media Types', dest='type')
@@ -379,7 +378,7 @@ class TabCompleteExample(cmd2.Cmd):
# This tuple represents index-based args to append to the function call
(list(TabCompleteExample.SHOW_DATABASE.keys()),)
),
- 'episode_id': (self._filter_episodes, # this is a custom completion function
+ 'episode_id': (self._filter_episodes, # this is a custom completion function
# this list represents index-based args to append to the function call
[TabCompleteExample.SHOW_DATABASE],
# this dict contains keyword-based args to append to the function call