We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4426407 commit dfdd221Copy full SHA for dfdd221
sbom.py
@@ -223,10 +223,10 @@ def recursive_sort_in_place(value: list[Any] | dict[str, Any]) -> None:
223
recursive_sort_in_place(cast(dict[str, Any], sbom_data))
224
225
226
-def check_sbom_data(sbom_data):
+def check_sbom_data(sbom_data: SBOM) -> None:
227
"""Check SBOM data for common issues"""
228
229
- def check_id_duplicates(sbom_components: list[dict[str, typing.Any]]) -> set[str]:
+ def check_id_duplicates(sbom_components: list[Package] | list[File]) -> set[str]:
230
all_ids = set()
231
for sbom_component in sbom_components:
232
sbom_component_id = sbom_component["SPDXID"]
0 commit comments