Skip to content

Commit 309e185

Browse files
committed
Use click.Group instead of MultiCommand
MultiCommand has been deprecated and it is now an alias to Group, which leads to new mypy warnings when running mypy with Click available in the environment.
1 parent 8aba409 commit 309e185

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lnt/lnttool/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def action_create_config():
341341
sys.stderr.write("Created '%s'\n" % _default_config_filename)
342342

343343

344-
class AdminCLI(click.MultiCommand):
344+
class AdminCLI(click.Group):
345345
'''Admin subcommands. Put into this class so we can lazily import
346346
dependencies.'''
347347
_commands = [

lnt/lnttool/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def _print_result_url(results, verbose):
142142
print("Results available at: no URL available")
143143

144144

145-
class RunTestCLI(click.MultiCommand):
145+
class RunTestCLI(click.Group):
146146
def list_commands(self, ctx):
147147
import lnt.tests
148148
return lnt.tests.get_names()

0 commit comments

Comments
 (0)