File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -703,7 +703,7 @@ def validate(self) -> bool:
703
703
# 2. if root component is set and there are other components: dependencies should exist for the Component
704
704
# this BOM is describing
705
705
if self .metadata .component and len (self .components ) > 0 and not any (map (
706
- lambda d : d .ref == self .metadata .component .bom_ref and len (d .dependencies ) > 0 , # type: ignore[union-attr]
706
+ lambda d : d .ref == self .metadata .component .bom_ref and len (d .dependencies ) > 0 , # type:ignore[union-attr]
707
707
self .dependencies
708
708
)):
709
709
warn (
Original file line number Diff line number Diff line change @@ -368,7 +368,7 @@ def requirements(self) -> 'SortedSet[BomRef]':
368
368
369
369
@requirements .setter
370
370
def requirements (self , requirements : Iterable [Union [str , BomRef ]]) -> None :
371
- self ._requirements = SortedSet (map (_bom_ref_from_str , # type: ignore[arg-type]
371
+ self ._requirements = SortedSet (map (_bom_ref_from_str , # type:ignore[arg-type]
372
372
requirements ))
373
373
374
374
def __comparable_tuple (self ) -> _ComparableTuple :
You can’t perform that action at this time.
0 commit comments