2323
2424__all__ = [
2525 'SchemaDeprecationWarning' ,
26- 'DeprecationWarning1Dot1 ' ,
27- 'DeprecationWarning1Dot2 ' ,
28- 'DeprecationWarning1Dot3 ' ,
29- 'DeprecationWarning1Dot4 ' ,
30- 'DeprecationWarning1Dot5 ' ,
31- 'DeprecationWarning1Dot6 ' ,
32- 'DeprecationWarning1Dot7 ' ,
26+ 'SchemaDeprecationWarning1Dot1 ' ,
27+ 'SchemaDeprecationWarning1Dot2 ' ,
28+ 'SchemaDeprecationWarning1Dot3 ' ,
29+ 'SchemaDeprecationWarning1Dot4 ' ,
30+ 'SchemaDeprecationWarning1Dot5 ' ,
31+ 'SchemaDeprecationWarning1Dot6 ' ,
32+ 'SchemaDeprecationWarning1Dot7 ' ,
3333]
3434
3535
36- class SchemaDeprecationWarning (DeprecationWarning , ABC ):
36+ class BaseSchemaDeprecationWarning (DeprecationWarning , ABC ):
3737 """Base class for warnings about deprecated schema features."""
3838
3939 SCHEMA_VERSION : ClassVar [SchemaVersion ]
@@ -47,36 +47,36 @@ def _warn(cls, deprecated: str, instead: Optional[str] = None, *, stacklevel: in
4747 warn (msg , category = cls , stacklevel = stacklevel + 1 )
4848
4949
50- class DeprecationWarning1Dot7 ( SchemaDeprecationWarning ):
50+ class SchemaDeprecationWarning1Dot7 ( BaseSchemaDeprecationWarning ):
5151 """Class for warnings about deprecated schema features in CycloneDX 1.7"""
5252 SCHEMA_VERSION : ClassVar [Literal [SchemaVersion .V1_7 ]] = SchemaVersion .V1_7
5353
5454
55- class DeprecationWarning1Dot6 ( SchemaDeprecationWarning ):
55+ class SchemaDeprecationWarning1Dot6 ( BaseSchemaDeprecationWarning ):
5656 """Class for warnings about deprecated schema features in CycloneDX 1.6"""
5757 SCHEMA_VERSION : ClassVar [Literal [SchemaVersion .V1_6 ]] = SchemaVersion .V1_6
5858
5959
60- class DeprecationWarning1Dot5 ( SchemaDeprecationWarning ):
60+ class SchemaDeprecationWarning1Dot5 ( BaseSchemaDeprecationWarning ):
6161 """Class for warnings about deprecated schema features in CycloneDX 1.5"""
6262 SCHEMA_VERSION : ClassVar [Literal [SchemaVersion .V1_5 ]] = SchemaVersion .V1_5
6363
6464
65- class DeprecationWarning1Dot4 ( SchemaDeprecationWarning ):
65+ class SchemaDeprecationWarning1Dot4 ( BaseSchemaDeprecationWarning ):
6666 """Class for warnings about deprecated schema features in CycloneDX 1.4"""
6767 SCHEMA_VERSION : ClassVar [Literal [SchemaVersion .V1_4 ]] = SchemaVersion .V1_4
6868
6969
70- class DeprecationWarning1Dot3 ( SchemaDeprecationWarning ):
70+ class SchemaDeprecationWarning1Dot3 ( BaseSchemaDeprecationWarning ):
7171 """Class for warnings about deprecated schema features in CycloneDX 1.3"""
7272 SCHEMA_VERSION : ClassVar [Literal [SchemaVersion .V1_3 ]] = SchemaVersion .V1_3
7373
7474
75- class DeprecationWarning1Dot2 ( SchemaDeprecationWarning ):
75+ class SchemaDeprecationWarning1Dot2 ( BaseSchemaDeprecationWarning ):
7676 """Class for warnings about deprecated schema features in CycloneDX 1.2"""
7777 SCHEMA_VERSION : ClassVar [Literal [SchemaVersion .V1_2 ]] = SchemaVersion .V1_2
7878
7979
80- class DeprecationWarning1Dot1 ( SchemaDeprecationWarning ):
80+ class SchemaDeprecationWarning1Dot1 ( BaseSchemaDeprecationWarning ):
8181 """Class for warnings about deprecated schema features in CycloneDX 1.1"""
8282 SCHEMA_VERSION : ClassVar [Literal [SchemaVersion .V1_1 ]] = SchemaVersion .V1_1
0 commit comments