Skip to content

Commit dfdd221

Browse files
committed
Add type annotations to 'check_sbom_data'
1 parent 4426407 commit dfdd221

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sbom.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,10 @@ def recursive_sort_in_place(value: list[Any] | dict[str, Any]) -> None:
223223
recursive_sort_in_place(cast(dict[str, Any], sbom_data))
224224

225225

226-
def check_sbom_data(sbom_data):
226+
def check_sbom_data(sbom_data: SBOM) -> None:
227227
"""Check SBOM data for common issues"""
228228

229-
def check_id_duplicates(sbom_components: list[dict[str, typing.Any]]) -> set[str]:
229+
def check_id_duplicates(sbom_components: list[Package] | list[File]) -> set[str]:
230230
all_ids = set()
231231
for sbom_component in sbom_components:
232232
sbom_component_id = sbom_component["SPDXID"]

0 commit comments

Comments
 (0)