summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd2/command_definition.py9
-rw-r--r--examples/modular_commands/commandset_basic.py2
-rw-r--r--examples/modular_commands/commandset_custominit.py2
-rw-r--r--tests/test_commandset.py7
4 files changed, 6 insertions, 14 deletions
diff --git a/cmd2/command_definition.py b/cmd2/command_definition.py
index 64e02fc8..d9925969 100644
--- a/cmd2/command_definition.py
+++ b/cmd2/command_definition.py
@@ -3,13 +3,8 @@
Supports the definition of commands in separate classes to be composed into cmd2.Cmd
"""
import functools
-from typing import (
- Callable,
- Dict,
- Iterable,
- Optional,
- Type,
-)
+from typing import Callable, Dict, Iterable, Optional, Type
+
from .constants import COMMAND_FUNC_PREFIX
# Allows IDEs to resolve types without impacting imports at runtime, breaking circular dependency issues
diff --git a/examples/modular_commands/commandset_basic.py b/examples/modular_commands/commandset_basic.py
index 01ce1b39..25ba976d 100644
--- a/examples/modular_commands/commandset_basic.py
+++ b/examples/modular_commands/commandset_basic.py
@@ -4,7 +4,7 @@ A simple example demonstrating a loadable command set
"""
from typing import List
-from cmd2 import Cmd, Statement, with_category, CommandSet, with_default_category, register_command
+from cmd2 import Cmd, CommandSet, Statement, register_command, with_category, with_default_category
from cmd2.utils import CompletionError
diff --git a/examples/modular_commands/commandset_custominit.py b/examples/modular_commands/commandset_custominit.py
index ce49876a..d96c5f1c 100644
--- a/examples/modular_commands/commandset_custominit.py
+++ b/examples/modular_commands/commandset_custominit.py
@@ -2,7 +2,7 @@
"""
A simple example demonstrating a loadable command set
"""
-from cmd2 import Cmd, Statement, with_category, CommandSet, with_default_category, register_command
+from cmd2 import Cmd, CommandSet, Statement, register_command, with_category, with_default_category
@register_command
diff --git a/tests/test_commandset.py b/tests/test_commandset.py
index bed570b9..eedf51de 100644
--- a/tests/test_commandset.py
+++ b/tests/test_commandset.py
@@ -5,16 +5,13 @@ Test CommandSet
"""
from typing import List
+
import pytest
import cmd2
from cmd2 import utils
-from .conftest import (
- complete_tester,
- normalize,
- run_cmd,
-)
+from .conftest import complete_tester, normalize, run_cmd
@cmd2.register_command