File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 2626from py_serializable .helpers import BaseHelper
2727from sortedcontainers import SortedSet
2828
29+ try :
30+ from warnings import deprecated
31+ except ImportError :
32+ from typing_extensions import deprecated
33+
2934from .._internal .compare import ComparableTuple as _ComparableTuple
3035from ..schema import SchemaVersion
3136from ..schema .schema import SchemaVersion1Dot4 , SchemaVersion1Dot5 , SchemaVersion1Dot6
3742 from py_serializable import ObjectMetadataLibrary , ViewType
3843
3944
45+ @deprecated (
46+ '`Tool` is deprecated from CycloneDX v1.5 onwards. '
47+ 'This class provides a compatibility layer for backward compatibility '
48+ 'Use `Component` or `Service` instead, and store data under '
49+ '`tools.components` or `tools.services`.'
50+ )
4051@serializable .serializable_class
4152class Tool :
4253 """
You can’t perform that action at this time.
0 commit comments