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 2020Set of helper classes for use with ``serializable`` when conducting (de-)serialization.
2121"""
2222
23+ import sys
2324from typing import Any , Optional
2425from uuid import UUID
2526
2627# See https://github.com/package-url/packageurl-python/issues/65
2728from packageurl import PackageURL
2829from py_serializable .helpers import BaseHelper
2930
31+ if sys .version_info > (3 , 13 ):
32+ from warnings import deprecated
33+ else :
34+ from typing_extensions import deprecated
35+
3036from ..exception .serialization import CycloneDxDeserializationException , SerializationOfUnexpectedValueException
3137from ..model .bom_ref import BomRef
3238from ..model .license import _LicenseRepositorySerializationHelper
3339
3440
41+ @deprecated ('Use :class:`BomRef` instead.' )
3542class BomRefHelper (BaseHelper ):
3643 """**DEPRECATED** in favour of :class:`BomRef`.
3744
@@ -88,6 +95,7 @@ def deserialize(cls, o: Any) -> UUID:
8895 ) from err
8996
9097
98+ @deprecated ('No public API planned for replacing this,' )
9199class LicenseRepositoryHelper (_LicenseRepositorySerializationHelper ):
92100 """**DEPRECATED**
93101
You can’t perform that action at this time.
0 commit comments