We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
BomRef
1 parent 8eb7786 commit 1fe7caeCopy full SHA for 1fe7cae
cyclonedx/model/bom_ref.py
@@ -42,7 +42,7 @@ def value(self, value: Optional[str]) -> None:
42
43
def __eq__(self, other: object) -> bool:
44
if isinstance(other, BomRef):
45
- return str(other) == str(self)
+ return other._value == self._value
46
return False
47
48
def __lt__(self, other: Any) -> bool:
@@ -57,4 +57,7 @@ def __repr__(self) -> str:
57
return f'<BomRef {self._value!r}>'
58
59
def __str__(self) -> str:
60
- return self.value or ''
+ return self._value or ''
61
+
62
+ def __bool__(self) -> bool:
63
+ return self._value is not None
0 commit comments