@@ -106,7 +106,7 @@ def __getstate__(self) -> Dict[str, _V]:
106
106
return self .__dict__
107
107
108
108
def __setstate__ (self , state ):
109
- self .__init__ (** state ) # type: ignore
109
+ self .__init__ (** state ) # type: ignore[misc]
110
110
111
111
def __copy__ (self ):
112
112
return self .__class__ (** self .__dict__ )
@@ -219,7 +219,7 @@ def __setitem__(self, i: int, o: _T) -> None: ...
219
219
def __setitem__ (self , i : slice , o : Iterable [_T ]) -> None : ...
220
220
221
221
def __setitem__ (self , i : Union [int , slice ], item : Union [_T , Iterable [_T ]]) -> None :
222
- self .data [i ] = item # type: ignore
222
+ self .data [i ] = item # type: ignore[index, assignment]
223
223
224
224
def __delitem__ (self , i : Union [int , slice ]):
225
225
del self .data [i ]
@@ -422,7 +422,7 @@ def __sub__(self: _F, other: float) -> _F:
422
422
def __mul__ (self : _F , other : float ) -> _F :
423
423
return self .__class__ (float (self ).__mul__ (other ))
424
424
425
- def __floordiv__ (self : _F , other : float ) -> _F : # type: ignore
425
+ def __floordiv__ (self : _F , other : float ) -> _F : # type: ignore[override]
426
426
return self .__class__ (float (self ).__floordiv__ (other ))
427
427
428
428
def __truediv__ (self : _F , other : float ) -> _F :
@@ -432,7 +432,7 @@ def __mod__(self: _F, other: float) -> _F:
432
432
return self .__class__ (float (self ).__mod__ (other ))
433
433
434
434
def __divmod__ (self : _F , other : float ) -> Tuple [_F , _F ]:
435
- return tuple (self .__class__ (x ) for x in float (self ).__divmod__ (other )) # type: ignore
435
+ return tuple (self .__class__ (x ) for x in float (self ).__divmod__ (other )) # type: ignore[return-value]
436
436
437
437
def __pow__ (self : _F , other : float , mod = None ) -> _F :
438
438
return self .__class__ (float (self ).__pow__ (other , mod ))
@@ -446,7 +446,7 @@ def __rsub__(self: _F, other: float) -> _F:
446
446
def __rmul__ (self : _F , other : float ) -> _F :
447
447
return self .__class__ (float (self ).__rmul__ (other ))
448
448
449
- def __rfloordiv__ (self : _F , other : float ) -> _F : # type: ignore
449
+ def __rfloordiv__ (self : _F , other : float ) -> _F : # type: ignore[override]
450
450
return self .__class__ (float (self ).__rfloordiv__ (other ))
451
451
452
452
def __rtruediv__ (self : _F , other : float ) -> _F :
0 commit comments