Skip to content

Commit 78fd4db

Browse files
committed
cleanup
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 0ee583e commit 78fd4db

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

cyclonedx/model/component_evidence.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -557,16 +557,14 @@ def __eq__(self, other: object) -> bool:
557557
return self.__comparable_tuple() == other.__comparable_tuple()
558558
return False
559559

560-
def __lt__(self, other: Any) -> bool:
561-
if isinstance(other, CallStackFrame):
562-
return self.__comparable_tuple() < other.__comparable_tuple()
563-
return NotImplemented
564-
565560
def __hash__(self) -> int:
566561
return hash(self.__comparable_tuple())
567562

568563
def __repr__(self) -> str:
569-
return f'<CallStackFrame package={self.package}, module={self.module}, function={self.function}>'
564+
return '<CallStackFrame' \
565+
f' package={self.package}, module={self.module}, ' \
566+
f' function={self.function}, parameters={self.parameters!r},' \
567+
f' line={self.line}, column={self.column}, full_filename={self.full_filename}>'
570568

571569

572570
@serializable.serializable_class

0 commit comments

Comments
 (0)