diff --git a/cyclonedx_py/_internal/environment.py b/cyclonedx_py/_internal/environment.py index 0a1799181..2a1da3d90 100644 --- a/cyclonedx_py/_internal/environment.py +++ b/cyclonedx_py/_internal/environment.py @@ -192,7 +192,7 @@ def __add_components(self, bom: 'Bom', pep639_licenses = list(dist2licenses_pep639(dist, self._gather_license_texts, self._logger)) pep639_lexp = find_LicenseExpression(pep639_licenses) if pep639_lexp is not None: - component.licenses = (pep639_lexp,) # type:ignore[assignment] + component.licenses = (pep639_lexp,) pep639_licenses.remove(pep639_lexp) if len(pep639_licenses) > 0: if find_LicenseExpression(component.licenses) is None: diff --git a/pyproject.toml b/pyproject.toml index f2fa86756..6d60ea130 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -90,7 +90,7 @@ pep8-naming = "0.15.1" flake8-logging = "1.7.0" isort = "6.0.1" autopep8 = "2.3.2" -mypy = "1.15.0" +mypy = "1.16.0" bandit = "1.8.3" tomli = { version = "^2.0.1", python = "<3.11" } tox = "4.26.0"