black format lazy group
parent
23a05bfa33
commit
10053c5071
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue