Commit 8793940
committed
py-cyclonedx-python-lib: update to 10.0.1.
## v10.0.1 (2025-05-10)
### Bug Fixes
- Add missing comparator for VulnerabilityAnalysis
When trying to generate a CycloneDX BOM that has two vulnerabilities that only differ in their
analysis, you get ``` TypeError: '<' not supported between instances of 'VulnerabilityAnalysis'
and 'VulnerabilityAnalysis' ```
This PR adds the `__lt__` method for the VulnerabilityAnalysis model to fix sorting and also
includes a test case to verify the fix.
### Documentation
- **fix**: Mdformat1 parent e1381f0 commit 8793940
2 files changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments