Skip to content

Commit e104148

Browse files
committed
wip
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent c09a376 commit e104148

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

cyclonedx/model/bom_ref.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,17 @@
1919
from typing import TYPE_CHECKING, Any, Optional
2020

2121
import serializable
22-
from serializable.helpers import BaseHelper
2322

2423
from ..exception.serialization import CycloneDxDeserializationException, SerializationOfUnexpectedValueException
2524

2625
if TYPE_CHECKING: # pragma: no cover
2726
from typing import Type, TypeVar
2827

29-
_T = TypeVar('_T', bound='BomRef')
28+
_T_BR = TypeVar('_T_BR', bound='BomRef')
3029

3130

3231
@serializable.serializable_class
33-
class BomRef(BaseHelper):
32+
class BomRef(serializable.helpers.BaseHelper):
3433
"""
3534
An identifier that can be used to reference objects elsewhere in the BOM.
3635
@@ -91,7 +90,7 @@ def serialize(cls, o: Any) -> Optional[str]:
9190
f'Attempt to serialize a non-BomRef: {o!r}')
9291

9392
@classmethod
94-
def deserialize(cls: 'Type[_T]', o: Any) -> '_T':
93+
def deserialize(cls: 'Type[_T_BR]', o: Any) -> '_T_BR':
9594
try:
9695
return cls(value=str(o))
9796
except ValueError as err:

0 commit comments

Comments
 (0)