File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1919from typing import TYPE_CHECKING , Any , Optional
2020
2121import serializable
22- from serializable .helpers import BaseHelper
2322
2423from ..exception .serialization import CycloneDxDeserializationException , SerializationOfUnexpectedValueException
2524
2625if 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 :
You can’t perform that action at this time.
0 commit comments