Skip to content

Commit 0df19fa

Browse files
committed
tidy
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
1 parent 37d6e6f commit 0df19fa

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

cyclonedx/schema/deprecation.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535

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

4041
@classmethod
41-
def _warn(cls, deprecated: str, instead: Optional[str] = None,
42-
*, stacklevel: int = 1) -> None:
42+
def _warn(cls, deprecated: str, instead: Optional[str] = None, *, stacklevel: int = 1) -> None:
4343
"""Internal API. Not part of the public interface."""
4444
msg = f'`{deprecated}` is deprecated from CycloneDX v{cls.SCHEMA_VERSION.to_version()} onwards.'
4545
if instead:
@@ -51,6 +51,7 @@ class DeprecationWarning1Dot7(SchemaDeprecationWarning):
5151
"""Class for warnings about deprecated schema features in CycloneDX 1.7"""
5252
SCHEMA_VERSION: ClassVar[Literal[SchemaVersion.V1_7]] = SchemaVersion.V1_7
5353

54+
5455
class DeprecationWarning1Dot6(SchemaDeprecationWarning):
5556
"""Class for warnings about deprecated schema features in CycloneDX 1.6"""
5657
SCHEMA_VERSION: ClassVar[Literal[SchemaVersion.V1_6]] = SchemaVersion.V1_6

0 commit comments

Comments
 (0)