Skip to content

Commit 5b381fb

Browse files
committed
docs
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
1 parent 5db6771 commit 5b381fb

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

cyclonedx/schema/deprecation.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535

3636
class SchemaDeprecationWarning(DeprecationWarning, ABC):
37+
"""Base class for warnings about deprecated schema features."""
3738
SCHEMA_VERSION: ClassVar[SchemaVersion]
3839

3940
@classmethod
@@ -47,28 +48,35 @@ def _warn(cls, deprecated: str, instead: Optional[str] = None,
4748

4849

4950
class DeprecationWarning1Dot7(SchemaDeprecationWarning):
51+
"""Class for warnings about deprecated schema features in CycloneDX 1.7"""
5052
SCHEMA_VERSION = SchemaVersion.V1_7
5153

5254

5355
class DeprecationWarning1Dot6(SchemaDeprecationWarning):
56+
"""Class for warnings about deprecated schema features in CycloneDX 1.6"""
5457
SCHEMA_VERSION = SchemaVersion.V1_6
5558

5659

5760
class DeprecationWarning1Dot5(SchemaDeprecationWarning):
61+
"""Class for warnings about deprecated schema features in CycloneDX 1.5"""
5862
SCHEMA_VERSION = SchemaVersion.V1_5
5963

6064

6165
class DeprecationWarning1Dot4(SchemaDeprecationWarning):
66+
"""Class for warnings about deprecated schema features in CycloneDX 1.4"""
6267
SCHEMA_VERSION = SchemaVersion.V1_4
6368

6469

6570
class DeprecationWarning1Dot3(SchemaDeprecationWarning):
71+
"""Class for warnings about deprecated schema features in CycloneDX 1.3"""
6672
SCHEMA_VERSION = SchemaVersion.V1_3
6773

6874

6975
class DeprecationWarning1Dot2(SchemaDeprecationWarning):
76+
"""Class for warnings about deprecated schema features in CycloneDX 1.2"""
7077
_schema_version_enum = SchemaVersion.V1_2
7178

7279

7380
class DeprecationWarning1Dot1(SchemaDeprecationWarning):
81+
"""Class for warnings about deprecated schema features in CycloneDX 1.1"""
7482
_schema_version_enum = SchemaVersion.V1_1

0 commit comments

Comments
 (0)