|
33 | 33 |
|
34 | 34 | from .._internal.compare import ComparableTuple as _ComparableTuple
|
35 | 35 | from ..schema.schema import SchemaVersion1Dot3, SchemaVersion1Dot4, SchemaVersion1Dot5, SchemaVersion1Dot6
|
36 |
| -from . import DataClassification, DataFlow, ExternalReference, Property, XsUri |
| 36 | +from . import DataFlow, ExternalReference, Property, XsUri |
| 37 | + |
| 38 | +# DataClassification, |
37 | 39 | from .bom_ref import BomRef
|
38 | 40 | from .contact import OrganizationalEntity
|
39 | 41 | from .dependency import Dependable
|
@@ -252,18 +254,18 @@ def x_trust_boundary(self, x_trust_boundary: Optional[bool]) -> None:
|
252 | 254 | @property
|
253 | 255 | @serializable.xml_array(serializable.XmlArraySerializationType.NESTED, 'classification')
|
254 | 256 | @serializable.xml_sequence(10)
|
255 |
| - def data(self) -> 'SortedSet[DataClassification]': |
| 257 | + def data(self) -> 'SortedSet[Data]': |
256 | 258 | """
|
257 | 259 | Specifies the data classification.
|
258 | 260 |
|
259 | 261 | Returns:
|
260 |
| - Set of `DataClassification` |
| 262 | + Set of `Data` |
261 | 263 | """
|
262 | 264 | # TODO since CDX1.5 also supports `dataflow`, not only `DataClassification`
|
263 | 265 | return self._data
|
264 | 266 |
|
265 | 267 | @data.setter
|
266 |
| - def data(self, data: Iterable[DataClassification]) -> None: |
| 268 | + def data(self, data: Iterable['Data']) -> None: |
267 | 269 | self._data = SortedSet(data)
|
268 | 270 |
|
269 | 271 | @property
|
@@ -643,4 +645,4 @@ def __hash__(self) -> int:
|
643 | 645 | return hash((self.flow, self.classification))
|
644 | 646 |
|
645 | 647 | def __repr__(self) -> str:
|
646 |
| - return f'<DataClassification flow={self.flow}>' |
| 648 | + return f'<Data flow={self.flow}>' |
0 commit comments