black format lazy group

main
Jeff Moe 2023-10-07 16:07:16 -06:00
parent 23a05bfa33
commit 10053c5071
1 changed files with 2 additions and 4 deletions

View File

@ -1,6 +1,7 @@
import importlib
import click
class LazyGroup(click.Group):
def __init__(self, *args, lazy_subcommands=None, **kwargs):
super().__init__(*args, **kwargs)
@ -30,8 +31,5 @@ class LazyGroup(click.Group):
cmd_object = getattr(mod, cmd_object_name)
# check the result to make debugging easier
if not isinstance(cmd_object, click.BaseCommand):
raise ValueError(
f"Lazy loading of {import_path} failed by returning "
"a non-command object"
)
raise ValueError(f"Lazy loading of {import_path} failed by returning " "a non-command object")
return cmd_object