@@ -309,7 +309,7 @@ def __eq__(self, other: object) -> bool:
309309 self_coords = self .canvas .coords (self .rect )
310310 other_coords = other .canvas .coords (other .rect )
311311
312- return all (abs (a - b ) < 1e-9 for a , b in zip (self_coords , other_coords , strict = True ))
312+ return all (abs (a - b ) < 1e-9 for a , b in zip (self_coords , other_coords , strict = True )) # type: ignore[call-overload]
313313
314314 def __ne__ (self , other : object ) -> bool :
315315 """
@@ -433,7 +433,7 @@ def __radd__(self, offset: Union[List[float], Tuple[float, float]]) -> "Draggabl
433433 Returns:
434434 New DraggableRectangle at translated position.
435435 """
436- return self .__add__ (offset )
436+ return self .__add__ (offset ) # type: ignore[no-any-return]
437437
438438 def __sub__ (self , offset : Union [List [float ], Tuple [float , float ]]) -> "DraggableRectangle" :
439439 """
@@ -452,7 +452,7 @@ def __sub__(self, offset: Union[List[float], Tuple[float, float]]) -> "Draggable
452452 raise TypeError ("offset must be a sequence of two numbers [dx, dy]" )
453453
454454 dx , dy = offset
455- return self .__add__ ([- dx , - dy ])
455+ return self .__add__ ([- dx , - dy ]) # type: ignore[no-any-return]
456456
457457 @saves_history
458458 def __rsub__ (self , offset : Union [List [float ], Tuple [float , float ]]) -> "DraggableRectangle" :
@@ -535,7 +535,7 @@ def __rmul__(self, scalar: Union[int, float]) -> "DraggableRectangle":
535535 Returns:
536536 New scaled DraggableRectangle.
537537 """
538- return self .__mul__ (scalar )
538+ return self .__mul__ (scalar ) # type: ignore[no-any-return]
539539
540540 def __truediv__ (self , scalar : Union [int , float ]) -> "DraggableRectangle" :
541541 """
@@ -561,7 +561,7 @@ def __truediv__(self, scalar: Union[int, float]) -> "DraggableRectangle":
561561 if scalar < 0 :
562562 raise ValueError ("scaling factor must be non-negative" )
563563
564- return self .__mul__ (1 / scalar )
564+ return self .__mul__ (1 / scalar ) # type: ignore[no-any-return]
565565
566566 def __floordiv__ (self , scalar : Union [int , float ]) -> "DraggableRectangle" :
567567 """
@@ -587,7 +587,7 @@ def __floordiv__(self, scalar: Union[int, float]) -> "DraggableRectangle":
587587 if scalar < 0 :
588588 raise ValueError ("scaling factor must be non-negative" )
589589
590- return self .__mul__ (1 // scalar if isinstance (scalar , int ) else int (1 / scalar ))
590+ return self .__mul__ (1 // scalar if isinstance (scalar , int ) else int (1 / scalar )) # type: ignore[no-any-return]
591591
592592 @saves_history
593593 def __iadd__ (self , offset : Union [List [float ], Tuple [float , float ]]) -> "DraggableRectangle" :
@@ -628,7 +628,7 @@ def __isub__(self, offset: Union[List[float], Tuple[float, float]]) -> "Draggabl
628628 raise TypeError ("offset must be a sequence of two numbers [dx, dy]" )
629629
630630 dx , dy = offset
631- return self .__iadd__ ([- dx , - dy ])
631+ return self .__iadd__ ([- dx , - dy ]) # type: ignore[no-any-return]
632632
633633 @saves_history
634634 def __imul__ (self , scalar : Union [int , float ]) -> "DraggableRectangle" :
@@ -692,7 +692,7 @@ def __itruediv__(self, scalar: Union[int, float]) -> "DraggableRectangle":
692692 if scalar < 0 :
693693 raise ValueError ("scaling factor must be non-negative" )
694694
695- return self .__imul__ (1 / scalar )
695+ return self .__imul__ (1 / scalar ) # type: ignore[no-any-return]
696696
697697 @saves_history (only_if_result = True )
698698 def __and__ (self , other : "DraggableRectangle" ) -> Optional ["DraggableRectangle" ]:
0 commit comments