Skip to content

Commit

Permalink
Return empty list in case no dependencies are found #94
Browse files Browse the repository at this point in the history
Reference: #94
Signed-off-by: Tushar Goel <[email protected]>
  • Loading branch information
TG1999 committed Nov 4, 2022
1 parent 27fe710 commit 6c0f12c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 6c0f12c

Please sign in to comment.