Skip to content

Commit

Permalink
Merge pull request #95 from nexB/fix_serialization
Browse files Browse the repository at this point in the history
Return empty list for resolved dependencies graph in case no dependencies are found #94
  • Loading branch information
TG1999 authored Nov 4, 2022
2 parents 27fe710 + 658cfd2 commit b40a676
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ v0.9.2

- Make os and python version as mandatory input parameters.
- Do not return duplicates binaries.
- Return empty list for resolved dependencies graph in case of no dependencies
are found #94 https://github.com/nexB/python-inspector/issues/94.


v0.9.1
Expand Down
2 changes: 1 addition & 1 deletion src/python_inspector/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def resolve_dependencies(
if not direct_dependencies:
return Resolution(
packages=[],
resolution={},
resolution=[],
files=files,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,5 @@
}
],
"packages": [],
"resolved_dependencies_graph": {}
"resolved_dependencies_graph": []
}

0 comments on commit b40a676

Please sign in to comment.