File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 20
20
Set of helper classes for use with ``serializable`` when conducting (de-)serialization.
21
21
"""
22
22
23
+ import sys
23
24
from typing import Any , Optional
24
25
from uuid import UUID
25
26
26
27
# See https://github.com/package-url/packageurl-python/issues/65
27
28
from packageurl import PackageURL
28
29
from py_serializable .helpers import BaseHelper
29
30
31
+ if sys .version_info > (3 , 13 ):
32
+ from warnings import deprecated
33
+ else :
34
+ from typing_extensions import deprecated
35
+
30
36
from ..exception .serialization import CycloneDxDeserializationException , SerializationOfUnexpectedValueException
31
37
from ..model .bom_ref import BomRef
32
38
from ..model .license import _LicenseRepositorySerializationHelper
33
39
34
40
41
+ @deprecated ('Use :class:`BomRef` instead.' )
35
42
class BomRefHelper (BaseHelper ):
36
43
"""**DEPRECATED** in favour of :class:`BomRef`.
37
44
@@ -88,6 +95,7 @@ def deserialize(cls, o: Any) -> UUID:
88
95
) from err
89
96
90
97
98
+ @deprecated ('No public API planned for replacing this,' )
91
99
class LicenseRepositoryHelper (_LicenseRepositorySerializationHelper ):
92
100
"""**DEPRECATED**
93
101
You can’t perform that action at this time.
0 commit comments