We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bee579 commit f0e21fcCopy full SHA for f0e21fc
cyclonedx/serialization/__init__.py
@@ -20,16 +20,17 @@
20
Set of helper classes for use with ``serializable`` when conducting (de-)serialization.
21
"""
22
23
+import sys
24
from typing import Any, Optional
25
from uuid import UUID
26
27
# See https://github.com/package-url/packageurl-python/issues/65
28
from packageurl import PackageURL
29
from py_serializable.helpers import BaseHelper
30
-try:
31
+if sys.version_info > (3, 13):
32
from warnings import deprecated
-except ImportError:
33
+else:
34
from typing_extensions import deprecated
35
36
from ..exception.serialization import CycloneDxDeserializationException, SerializationOfUnexpectedValueException
0 commit comments