From c3487f69eae5ce0ee49311e899e4006cd43b3b2b Mon Sep 17 00:00:00 2001 From: Terje Kvernes Date: Mon, 18 Dec 2023 10:02:55 +0100 Subject: [PATCH] Minor typing fixes. --- mreg_cli/commands/group.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mreg_cli/commands/group.py b/mreg_cli/commands/group.py index 06bc0387..72b8235a 100644 --- a/mreg_cli/commands/group.py +++ b/mreg_cli/commands/group.py @@ -76,7 +76,7 @@ def info(args: argparse.Namespace) -> None: manager.add_formatted_line("Name:", info["name"]) manager.add_formatted_line("Description:", info["description"]) - members = [] + members: List[str] = [] count = len(info["hosts"]) if count: members.append("{} host{}".format(count, "s" if count > 1 else "")) @@ -246,7 +246,7 @@ def host_add(args: argparse.Namespace) -> None: :param args: argparse.Namespace (group, hosts) """ get_hostgroup(args.group) - info = [] + info: Dict[str, str] = [] for name in args.hosts: info.append(host_info_by_name(name, follow_cname=False)) @@ -275,7 +275,7 @@ def host_remove(args: argparse.Namespace) -> None: :param args: argparse.Namespace (group, hosts) """ get_hostgroup(args.group) - info = [] + info: Dict[str, str] = [] for name in args.hosts: info.append(host_info_by_name(name, follow_cname=False))