Skip to content

Commit 95b560a

Browse files
authored
fix: add runtime dependnecy typing_extensions>=4.6; python_version<"3.13" (#845)
fixes #844 Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
1 parent d8b133e commit 95b560a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cyclonedx/serialization/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from packageurl import PackageURL
2929
from py_serializable.helpers import BaseHelper
3030

31-
if sys.version_info > (3, 13):
31+
if sys.version_info >= (3, 13):
3232
from warnings import deprecated
3333
else:
3434
from typing_extensions import deprecated

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ sortedcontainers = "^2.4.0"
7474
license-expression = "^30"
7575
jsonschema = { version = "^4.18", extras=['format'], optional=true }
7676
lxml = { version=">=4,<7", optional=true }
77+
typing_extensions = { version="^4.6", python = "<3.13"} # for `@deprecated` - which was added in v4.5 but this version appesrs to be broken...
7778

7879
[tool.poetry.extras]
7980
validation = ["jsonschema", "lxml"]

0 commit comments

Comments
 (0)