From ed8fca6494f5f2b43c8eb79c4720e354454bbd14 Mon Sep 17 00:00:00 2001 From: WillyPillow Date: Sat, 8 Aug 2020 15:31:25 +0800 Subject: [PATCH] qvm-template: Fix type hints. --- qubesadmin/tools/qvm_template.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qubesadmin/tools/qvm_template.py b/qubesadmin/tools/qvm_template.py index 9e850d6..cbcf158 100644 --- a/qubesadmin/tools/qvm_template.py +++ b/qubesadmin/tools/qvm_template.py @@ -818,8 +818,8 @@ def install( print('This will override changes made in the following VMs:', file=sys.stderr) - for tpl in override_tpls: - print(' %s' % tpl, file=sys.stderr) + for name in override_tpls: + print(' %s' % name, file=sys.stderr) confirm = '' while confirm != 'y': confirm = input('Are you sure? [y/N] ').lower() @@ -1186,6 +1186,7 @@ def repolist(args: argparse.Namespace, app: qubesadmin.app.QubesBase) -> None: for repo in args.disablerepo: base.repos.get_matching(repo).disable() + repos: typing.List[dnf.repo.Repo] if args.repos: repos = [] for repo in args.repos: