summaryrefslogtreecommitdiff
path: root/examples/modular_commands
diff options
context:
space:
mode:
authorEric Lin <anselor@gmail.com>2021-01-05 11:29:39 -0500
committeranselor <anselor@gmail.com>2021-01-22 10:40:50 -0500
commita3b1b6ddf81cdc0b253f15feeb167ff348afd14f (patch)
tree2556f4aa57d02e12526949c08cf032c3e1a67d11 /examples/modular_commands
parentc1859045c8d439932fac9ceb5203a400db609533 (diff)
downloadcmd2-git-a3b1b6ddf81cdc0b253f15feeb167ff348afd14f.tar.gz
Changed isort to force wrapping of imports to reduce merge conflicts from minor import changes.
Diffstat (limited to 'examples/modular_commands')
-rw-r--r--examples/modular_commands/commandset_basic.py18
-rw-r--r--examples/modular_commands/commandset_complex.py8
-rw-r--r--examples/modular_commands/commandset_custominit.py7
3 files changed, 26 insertions, 7 deletions
diff --git a/examples/modular_commands/commandset_basic.py b/examples/modular_commands/commandset_basic.py
index 2ceda439..4417bfe5 100644
--- a/examples/modular_commands/commandset_basic.py
+++ b/examples/modular_commands/commandset_basic.py
@@ -2,10 +2,20 @@
"""
A simple example demonstrating a loadable command set
"""
-from typing import List
-
-from cmd2 import Cmd, CommandSet, Statement, with_category, with_default_category
-from cmd2.utils import CompletionError
+from typing import (
+ List,
+)
+
+from cmd2 import (
+ Cmd,
+ CommandSet,
+ Statement,
+ with_category,
+ with_default_category,
+)
+from cmd2.utils import (
+ CompletionError,
+)
@with_default_category('Basic Completion')
diff --git a/examples/modular_commands/commandset_complex.py b/examples/modular_commands/commandset_complex.py
index 579c0677..4905265a 100644
--- a/examples/modular_commands/commandset_complex.py
+++ b/examples/modular_commands/commandset_complex.py
@@ -5,10 +5,14 @@ Test CommandSet
"""
import argparse
-from typing import List
+from typing import (
+ List,
+)
import cmd2
-from cmd2 import utils
+from cmd2 import (
+ utils,
+)
@cmd2.with_default_category('Fruits')
diff --git a/examples/modular_commands/commandset_custominit.py b/examples/modular_commands/commandset_custominit.py
index 2ef94a75..e24ac291 100644
--- a/examples/modular_commands/commandset_custominit.py
+++ b/examples/modular_commands/commandset_custominit.py
@@ -2,7 +2,12 @@
"""
A simple example demonstrating a loadable command set
"""
-from cmd2 import Cmd, CommandSet, Statement, with_default_category
+from cmd2 import (
+ Cmd,
+ CommandSet,
+ Statement,
+ with_default_category,
+)
@with_default_category('Custom Init')