Skip to content

Commit

Permalink
Minor typing fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
terjekv committed Dec 18, 2023
1 parent 71b4bf5 commit c3487f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mreg_cli/commands/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""))
Expand Down Expand Up @@ -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))

Expand Down Expand Up @@ -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))

Expand Down

0 comments on commit c3487f6

Please sign in to comment.