From 9cb49fb2a3b980f97d5fb27ea37c6dfeee3b9ec4 Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Sun, 31 Jan 2021 23:24:47 -0500 Subject: Add in isort changes --- cmd2/command_definition.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'cmd2/command_definition.py') 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 -- cgit v1.2.1