Skip to content

Commit 6c0f12c

Browse files
committed
Return empty list in case no dependencies are found #94
Reference: #94 Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent 27fe710 commit 6c0f12c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/python_inspector/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def resolve_dependencies(
208208
if not direct_dependencies:
209209
return Resolution(
210210
packages=[],
211-
resolution={},
211+
resolution=[],
212212
files=files,
213213
)
214214

tests/data/setup/no-direct-dependencies-setup.py-expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,5 @@
8181
}
8282
],
8383
"packages": [],
84-
"resolved_dependencies_graph": {}
84+
"resolved_dependencies_graph": []
8585
}

0 commit comments

Comments
 (0)