Skip to content

Commit 9436747

Browse files
committed
typos
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
1 parent ff0e11d commit 9436747

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

cyclonedx/contrib/component/builders.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
"""Component related builders"""
1919

20+
__all__ = ['ComponentBuilder']
2021

2122
from hashlib import sha1
2223
from os.path import exists

cyclonedx/contrib/license/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ class LicenseFactoryException(FactoryException):
5656

5757
class InvalidLicenseExpressionException(LicenseFactoryException):
5858
"""
59-
Thrown when an invalid License expressions is provided.
59+
Thrown when an invalid License expression is provided.
6060
"""
6161
pass

cyclonedx/model/bom.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ def get_vulnerabilities_for_bom_ref(self, bom_ref: BomRef) -> 'SortedSet[Vulnera
759759
`SortedSet` of `Vulnerability`
760760
761761
.. deprecated:: next
762-
Deprecated without any replacement.
762+
Deprecated without any replacement.
763763
"""
764764
vulnerabilities: SortedSet[Vulnerability] = SortedSet()
765765
for v in self.vulnerabilities:
@@ -776,7 +776,7 @@ def has_vulnerabilities(self) -> bool:
776776
`bool` - `True` if this Bom has at least one Vulnerability, `False` otherwise.
777777
778778
.. deprecated:: next
779-
Deprecated without any replacement.
779+
Deprecated without any replacement.
780780
"""
781781
return bool(self.vulnerabilities)
782782

@@ -801,7 +801,7 @@ def register_dependency(self, target: Dependable, depends_on: Optional[Iterable[
801801
def urn(self) -> str:
802802
"""
803803
.. deprecated:: next
804-
Deprecated without any replacement.
804+
Deprecated without any replacement.
805805
"""
806806
# idea: have 'serial_number' be a string, and use it instead of this method
807807
return f'{_BOM_LINK_PREFIX}{self.serial_number}/{self.version}'
@@ -815,7 +815,7 @@ def validate(self) -> bool:
815815
`bool`
816816
817817
.. deprecated:: next
818-
Deprecated without any replacement.
818+
Deprecated without any replacement.
819819
"""
820820
# !! deprecated function. have this as an part of the normalization process, like the BomRefDiscrimator
821821
# 0. Make sure all Dependable have a Dependency entry

cyclonedx/model/vulnerability.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ def get_from_cvss_scores(scores: Union[tuple[float, ...], float, None]) -> 'Vuln
736736
Derives the Severity of a Vulnerability from it's declared CVSS scores.
737737
738738
.. deprecated:: next
739-
Use ``cyclonedx.contrib.vulnerability.cvss.VulnerabilitySeverity_from_cvss_scores()`` instead.
739+
Use ``cyclonedx.contrib.vulnerability.cvss.vs_from_cvss_scores()`` instead.
740740
"""
741741
from ..contrib.vulnerability.cvss import vs_from_cvss_scores
742742

0 commit comments

Comments
 (0)