From c559e3f7d5dd57fc40d93d58dbf25628173e0128 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 05:39:27 +0000 Subject: [PATCH 1/2] chore(deps-dev): Update mypy requirement from 1.15.0 to 1.16.0 Updates the requirements on [mypy](https://github.com/python/mypy) to permit the latest version. - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.15.0...v1.16.0) --- updated-dependencies: - dependency-name: mypy dependency-version: 1.16.0 dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f2fa8675..6d60ea13 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" From f024def4993dc86b7b5809735ada76da77afc88b Mon Sep 17 00:00:00 2001 From: Jan Kowalleck Date: Mon, 2 Jun 2025 07:43:45 +0200 Subject: [PATCH 2/2] style: remove unused typehints Signed-off-by: Jan Kowalleck --- cyclonedx_py/_internal/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cyclonedx_py/_internal/environment.py b/cyclonedx_py/_internal/environment.py index 0a179918..2a1da3d9 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: