From 92d25df3afd04ed5274db2714cfc0d36c9b0d882 Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Wed, 3 Jul 2024 18:59:48 -0400 Subject: [PATCH] chore: flake8 --- manage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manage.py b/manage.py index c75b036a..8fc17160 100755 --- a/manage.py +++ b/manage.py @@ -1100,7 +1100,7 @@ def _get_paths(d, path=""): elif element["refs"] != "": # elements that reference another element and have a blank example example = mapping[element["refs"]]["example"] # A dict is used to preserve order (unlike a set). - element["fields"] = list({path: 0 for path in _get_paths(json.loads(example))}) + element["fields"] = list(dict.fromkeys(_get_paths(json.loads(example)), 0)) write_yaml_file(filename, list(mapping.values()))