@@ -175,8 +175,8 @@ def __init__(self, *, licenses: Optional[Iterable[LicenseChoice]] = None,
175175 'At least one of `licenses` or `copyright_` must be supplied for a `ComponentEvidence`.'
176176 )
177177
178- self .licenses = SortedSet ( licenses or [])
179- self .copyright = SortedSet ( copyright_ or [])
178+ self .licenses = licenses or [] # type: ignore
179+ self .copyright = copyright_ or [] # type: ignore
180180
181181 @property
182182 def licenses (self ) -> "SortedSet[LicenseChoice]" :
@@ -334,7 +334,7 @@ def __init__(self, *, type_: PatchClassification, diff: Optional[Diff] = None,
334334 resolves : Optional [Iterable [IssueType ]] = None ) -> None :
335335 self .type = type_
336336 self .diff = diff
337- self .resolves = SortedSet ( resolves or [])
337+ self .resolves = resolves or [] # type: ignore
338338
339339 @property
340340 def type (self ) -> PatchClassification :
@@ -423,11 +423,11 @@ def __init__(self, *, ancestors: Optional[Iterable['Component']] = None,
423423 'provided for `Pedigree`'
424424 )
425425
426- self .ancestors = SortedSet ( ancestors or [])
427- self .descendants = SortedSet ( descendants or [])
428- self .variants = SortedSet ( variants or [])
429- self .commits = SortedSet ( commits or [])
430- self .patches = SortedSet ( patches or [])
426+ self .ancestors = ancestors or [] # type: ignore
427+ self .descendants = descendants or [] # type: ignore
428+ self .variants = variants or [] # type: ignore
429+ self .commits = commits or [] # type: ignore
430+ self .patches = patches or [] # type: ignore
431431 self .notes = notes
432432
433433 @property
@@ -732,16 +732,16 @@ def __init__(self, *, name: str, component_type: ComponentType = ComponentType.L
732732 self .version = version
733733 self .description = description
734734 self .scope = scope
735- self .hashes = SortedSet ( hashes or [])
736- self .licenses = SortedSet ( licenses or [])
735+ self .hashes = hashes or [] # type: ignore
736+ self .licenses = licenses or [] # type: ignore
737737 self .copyright = copyright_
738738 self .cpe = cpe
739739 self .purl = purl
740740 self .swid = swid
741741 self .pedigree = pedigree
742- self .external_references = SortedSet ( external_references or [])
743- self .properties = SortedSet ( properties or [])
744- self .components = SortedSet ( components or [])
742+ self .external_references = external_references or [] # type: ignore
743+ self .properties = properties or [] # type: ignore
744+ self .components = components or [] # type: ignore
745745 self .evidence = evidence
746746 self .release_notes = release_notes
747747
@@ -760,7 +760,7 @@ def __init__(self, *, name: str, component_type: ComponentType = ComponentType.L
760760 'standard' , DeprecationWarning
761761 )
762762 if not licenses :
763- self .licenses = SortedSet ( [LicenseChoice (license_expression = license_str )])
763+ self .licenses = [LicenseChoice (license_expression = license_str )] # type: ignore
764764
765765 self .__dependencies : "SortedSet[BomRef]" = SortedSet ()
766766 self .__vulnerabilites : "SortedSet[Vulnerability]" = SortedSet ()
0 commit comments