Skip to content

Commit

Permalink
merge_json: fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
sgliner-ledger committed Nov 28, 2023
1 parent 6ca0c12 commit fb3900d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/build_and_test/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def main(args: Namespace) -> None:
build_output.append(scan_app)
logs += log

output = merge_json(build_output, {}, "name")
output = merge_json(build_output, [], "name")

with open(args.output_file, 'w') as json_file:
json.dump(output, json_file, indent=1)
Expand Down
2 changes: 1 addition & 1 deletion scripts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def git_setup(repo_name: str, repo_ref: str, repo_url: str, workdir: Path) -> No
return


def merge_json(json1: dict, json2: dict, key: str) -> List:
def merge_json(json1: list, json2: list, key: str) -> List:
merged_data = []

for obj1 in json1:
Expand Down

0 comments on commit fb3900d

Please sign in to comment.