@@ -373,7 +373,7 @@ def _add_component_element(self, component: Component) -> ElementTree.Element:
373
373
374
374
return component_element
375
375
376
- def _add_licenses_to_element (self , licenses : SortedSet [LicenseChoice ], parent_element : ElementTree .Element ) -> bool :
376
+ def _add_licenses_to_element (self , licenses : " SortedSet[LicenseChoice]" , parent_element : ElementTree .Element ) -> bool :
377
377
license_output = False
378
378
for license_ in licenses :
379
379
if license_ .license :
@@ -476,7 +476,7 @@ def add_patch_element(patch: Patch) -> ElementTree.Element:
476
476
return patch_element
477
477
478
478
@staticmethod
479
- def _add_properties_element (properties : SortedSet [Property ], parent_element : ElementTree .Element ) -> None :
479
+ def _add_properties_element (properties : " SortedSet[Property]" , parent_element : ElementTree .Element ) -> None :
480
480
properties_e = ElementTree .SubElement (parent_element , 'properties' )
481
481
for property_ in properties :
482
482
ElementTree .SubElement (
@@ -754,7 +754,7 @@ def _get_vulnerability_as_xml_element_pre_1_3(bom_ref: BomRef,
754
754
755
755
return vulnerability_element
756
756
757
- def _add_external_references_to_element (self , ext_refs : SortedSet [ExternalReference ],
757
+ def _add_external_references_to_element (self , ext_refs : " SortedSet[ExternalReference]" ,
758
758
element : ElementTree .Element ) -> None :
759
759
ext_refs_element = ElementTree .SubElement (element , 'externalReferences' )
760
760
for external_reference in ext_refs :
@@ -779,7 +779,7 @@ def _add_attached_text(attached_text: AttachedText, tag_name: str = 'text') -> E
779
779
return at_element
780
780
781
781
@staticmethod
782
- def _add_hashes_to_element (hashes : SortedSet [HashType ], element : ElementTree .Element ) -> None :
782
+ def _add_hashes_to_element (hashes : " SortedSet[HashType]" , element : ElementTree .Element ) -> None :
783
783
hashes_e = ElementTree .SubElement (element , 'hashes' )
784
784
for h in hashes :
785
785
ElementTree .SubElement (
0 commit comments