@@ -441,20 +441,20 @@ def _normalize(self) -> int:
441441 return self .value * self .sector_size .normalize ()
442442 return int (self .value * self .unit .value )
443443
444- def __sub__ (self , other : Size ) -> Size :
444+ def __sub__ (self , other : Self ) -> Size :
445445 src_norm = self ._normalize ()
446446 dest_norm = other ._normalize ()
447447 return Size (abs (src_norm - dest_norm ), Unit .B , self .sector_size )
448448
449- def __add__ (self , other : Size ) -> Size :
449+ def __add__ (self , other : Self ) -> Size :
450450 src_norm = self ._normalize ()
451451 dest_norm = other ._normalize ()
452452 return Size (abs (src_norm + dest_norm ), Unit .B , self .sector_size )
453453
454- def __lt__ (self , other : Size ) -> bool :
454+ def __lt__ (self , other : Self ) -> bool :
455455 return self ._normalize () < other ._normalize ()
456456
457- def __le__ (self , other : Size ) -> bool :
457+ def __le__ (self , other : Self ) -> bool :
458458 return self ._normalize () <= other ._normalize ()
459459
460460 @override
@@ -471,10 +471,10 @@ def __ne__(self, other: object) -> bool:
471471
472472 return self ._normalize () != other ._normalize ()
473473
474- def __gt__ (self , other : Size ) -> bool :
474+ def __gt__ (self , other : Self ) -> bool :
475475 return self ._normalize () > other ._normalize ()
476476
477- def __ge__ (self , other : Size ) -> bool :
477+ def __ge__ (self , other : Self ) -> bool :
478478 return self ._normalize () >= other ._normalize ()
479479
480480
0 commit comments