Skip to content

Commit 95df588

Browse files
committed
modified _IdentityToolRepositorySerializationHelper
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 1a7b41f commit 95df588

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cyclonedx/model/component_evidence.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,12 @@ class _IdentityToolRepositorySerializationHelper(serializable.helpers.BaseHelper
151151
""" THIS CLASS IS NON-PUBLIC API """
152152

153153
@classmethod
154-
def json_serialize(cls, o: Iterable['BomRef']) -> tuple[str, ...]:
155-
return tuple(t.value for t in o if t.value)
154+
def json_serialize(cls, o: Iterable['BomRef']) -> list[str]:
155+
return [t.value for t in o if t.value]
156156

157157
@classmethod
158-
def json_deserialize(cls, o: Iterable[str]) -> tuple[BomRef, ...]:
159-
return tuple(BomRef(value=t) for t in o)
158+
def json_deserialize(cls, o: Iterable[str]) -> list[BomRef]:
159+
return [BomRef(value=t) for t in o]
160160

161161
@classmethod
162162
def xml_normalize(cls, o: Iterable[BomRef], *,
@@ -176,8 +176,8 @@ def xml_normalize(cls, o: Iterable[BomRef], *,
176176
@classmethod
177177
def xml_denormalize(cls, o: 'XmlElement', *,
178178
default_ns: Optional[str],
179-
**__: Any) -> tuple[BomRef, ...]:
180-
return tuple(BomRef(value=t.get('ref')) for t in o)
179+
**__: Any) -> list[BomRef]:
180+
return [BomRef(value=t.get('ref')) for t in o]
181181

182182

183183
@serializable.serializable_class

0 commit comments

Comments
 (0)