enable comprehensions linting rules

This commit is contained in:
Jörg Thalheim
2024-09-02 13:32:29 +02:00
parent 109d1faf9e
commit 22d6e5e153
19 changed files with 146 additions and 151 deletions

View File

@@ -30,7 +30,7 @@ def get_command(args: argparse.Namespace) -> None:
# the raw_facts are bytestrings making them not json serializable
raw_facts = get_all_facts(machine)
facts = dict()
facts = {}
for key in raw_facts["TODO"]:
facts[key] = raw_facts["TODO"][key].decode("utf8")