@@ -394,7 +394,7 @@ def __contains__(self, wavelength: ArrayLike) -> bool:
394394        False 
395395        """ 
396396
397-         decimals  =  np .finfo (cast (Any , DTYPE_FLOAT_DEFAULT )).precision 
397+         decimals  =  np .finfo (cast (" Any"  , DTYPE_FLOAT_DEFAULT )).precision 
398398
399399        return  bool (
400400            np .all (
@@ -531,7 +531,7 @@ def range(self, dtype: Type[DTypeFloat] | None = None) -> NDArrayFloat:
531531        _CACHE_SHAPE_RANGE [hash_key ] =  range_ 
532532
533533        if  interval_effective  !=  self ._interval :
534-             self ._interval  =  cast (float , interval_effective )
534+             self ._interval  =  cast (" float"  , interval_effective )
535535            runtime_warning (
536536                f'"{ (start , end , interval )}  " shape could not be honoured, ' 
537537                f'using "{ self }  "!' 
@@ -717,7 +717,7 @@ def _on_domain_changed(
717717        """Invalidate *sd._shape* when *sd._domain* is changed.""" 
718718
719719        if  name  ==  "_domain" :
720-             sd ._shape  =  None    # noqa: SLF001 
720+             sd ._shape  =  None 
721721
722722        return  value 
723723
@@ -1883,8 +1883,7 @@ def display_labels(self, value: Sequence) -> None:
18831883
18841884        attest (
18851885            is_iterable (value ),
1886-             f'"display_labels" property: "{ value }  " is not an "iterable" like ' 
1887-             f"object!" ,
1886+             f'"display_labels" property: "{ value }  " is not an "iterable" like object!' ,
18881887        )
18891888
18901889        attest (
@@ -1899,7 +1898,7 @@ def display_labels(self, value: Sequence) -> None:
18991898
19001899        self ._display_labels  =  [str (label ) for  label  in  value ]
19011900        for  i , signal  in  enumerate (self .signals .values ()):
1902-             cast (SpectralDistribution , signal ).display_name  =  self ._display_labels [i ]
1901+             cast (" SpectralDistribution"  , signal ).display_name  =  self ._display_labels [i ]
19031902
19041903    @property  
19051904    def  wavelengths (self ) ->  NDArrayFloat :
@@ -2217,7 +2216,7 @@ def interpolate(
22172216        """ 
22182217
22192218        for  signal  in  self .signals .values ():
2220-             cast (SpectralDistribution , signal ).interpolate (
2219+             cast (" SpectralDistribution"  , signal ).interpolate (
22212220                shape , interpolator , interpolator_kwargs 
22222221            )
22232222
@@ -2303,7 +2302,7 @@ def extrapolate(
23032302        """ 
23042303
23052304        for  signal  in  self .signals .values ():
2306-             cast (SpectralDistribution , signal ).extrapolate (
2305+             cast (" SpectralDistribution"  , signal ).extrapolate (
23072306                shape , extrapolator , extrapolator_kwargs 
23082307            )
23092308
@@ -2451,7 +2450,7 @@ def align(
24512450        """ 
24522451
24532452        for  signal  in  self .signals .values ():
2454-             cast (SpectralDistribution , signal ).align (
2453+             cast (" SpectralDistribution"  , signal ).align (
24552454                shape ,
24562455                interpolator ,
24572456                interpolator_kwargs ,
@@ -2536,7 +2535,7 @@ def trim(self, shape: SpectralShape) -> Self:
25362535        """ 
25372536
25382537        for  signal  in  self .signals .values ():
2539-             cast (SpectralDistribution , signal ).trim (shape )
2538+             cast (" SpectralDistribution"  , signal ).trim (shape )
25402539
25412540        return  self 
25422541
@@ -2585,7 +2584,7 @@ def normalise(self, factor: Real = 1) -> Self:
25852584        """ 
25862585
25872586        for  signal  in  self .signals .values ():
2588-             cast (SpectralDistribution , signal ).normalise (factor )
2587+             cast (" SpectralDistribution"  , signal ).normalise (factor )
25892588
25902589        return  self 
25912590
@@ -2639,7 +2638,7 @@ def to_sds(self) -> List[SpectralDistribution]:
26392638        """ 
26402639
26412640        return  [
2642-             cast (SpectralDistribution , signal .copy ())
2641+             cast (" SpectralDistribution"  , signal .copy ())
26432642            for  signal  in  self .signals .values ()
26442643        ]
26452644
0 commit comments