Skip to content

Commit

Permalink
implemented __str__ for BomRef
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Horton <phorton@sonatype.com>
  • Loading branch information
madpah committed Feb 21, 2022
1 parent 0d82c01 commit 670bde4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cyclonedx/model/bom_ref.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,7 @@ def __hash__(self) -> int:
return hash(self.value)

def __repr__(self) -> str:
return f'<BomRef {self.value}'

def __str__(self) -> str:
return self.value

0 comments on commit 670bde4

Please sign in to comment.