Skip to content

Commit

Permalink
chore: flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jul 3, 2024
1 parent d7529f4 commit 92d25df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()))

Expand Down

0 comments on commit 92d25df

Please sign in to comment.