diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2021-01-31 23:24:47 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2021-01-31 23:24:47 -0500 |
commit | 9cb49fb2a3b980f97d5fb27ea37c6dfeee3b9ec4 (patch) | |
tree | 6d03d9b69ca6472211deb512ab80469f7b7d4802 /cmd2/command_definition.py | |
parent | 43be550b235f88007c4c1792a7caff38c5ba271f (diff) | |
download | cmd2-git-9cb49fb2a3b980f97d5fb27ea37c6dfeee3b9ec4.tar.gz |
Add in isort changes
Diffstat (limited to 'cmd2/command_definition.py')
-rw-r--r-- | cmd2/command_definition.py | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/cmd2/command_definition.py b/cmd2/command_definition.py index d30a8c32..e319d7f3 100644 --- a/cmd2/command_definition.py +++ b/cmd2/command_definition.py @@ -11,11 +11,15 @@ from .constants import ( CLASS_ATTR_DEFAULT_HELP_CATEGORY, COMMAND_FUNC_PREFIX, ) -from .exceptions import CommandSetRegistrationError +from .exceptions import ( + CommandSetRegistrationError, +) # Allows IDEs to resolve types without impacting imports at runtime, breaking circular dependency issues try: # pragma: no cover - from typing import TYPE_CHECKING + from typing import ( + TYPE_CHECKING, + ) if TYPE_CHECKING: import cmd2 @@ -47,9 +51,14 @@ def with_default_category(category: str, *, heritable: bool = True): if heritable: setattr(cls, CLASS_ATTR_DEFAULT_HELP_CATEGORY, category) - from .constants import CMD_ATTR_HELP_CATEGORY import inspect - from .decorators import with_category + + from .constants import ( + CMD_ATTR_HELP_CATEGORY, + ) + from .decorators import ( + with_category, + ) # get members of the class that meet the following criteria: # 1. Must be a function |