From a3b1b6ddf81cdc0b253f15feeb167ff348afd14f Mon Sep 17 00:00:00 2001 From: Eric Lin Date: Tue, 5 Jan 2021 11:29:39 -0500 Subject: Changed isort to force wrapping of imports to reduce merge conflicts from minor import changes. --- examples/modular_commands_main.py | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) (limited to 'examples/modular_commands_main.py') diff --git a/examples/modular_commands_main.py b/examples/modular_commands_main.py index b698e00f..2c652f22 100644 --- a/examples/modular_commands_main.py +++ b/examples/modular_commands_main.py @@ -5,13 +5,33 @@ A complex example demonstrating a variety of methods to load CommandSets using a with examples of how to integrate tab completion with argparse-based commands. """ import argparse -from typing import Dict, Iterable, List, Optional - -from cmd2 import Cmd, Cmd2ArgumentParser, CommandSet, CompletionItem, with_argparser -from cmd2.utils import CompletionError, basic_complete -from modular_commands.commandset_basic import BasicCompletionCommandSet # noqa: F401 -from modular_commands.commandset_complex import CommandSetA # noqa: F401 -from modular_commands.commandset_custominit import CustomInitCommandSet # noqa: F401 +from typing import ( + Dict, + Iterable, + List, + Optional, +) + +from cmd2 import ( + Cmd, + Cmd2ArgumentParser, + CommandSet, + CompletionItem, + with_argparser, +) +from cmd2.utils import ( + CompletionError, + basic_complete, +) +from modular_commands.commandset_basic import ( # noqa: F401 + BasicCompletionCommandSet, +) +from modular_commands.commandset_complex import ( # noqa: F401 + CommandSetA, +) +from modular_commands.commandset_custominit import ( + CustomInitCommandSet, # noqa: F401 +) # Data source for argparse.choices food_item_strs = ['Pizza', 'Ham', 'Ham Sandwich', 'Potato'] -- cgit v1.2.1