@@ -419,7 +419,7 @@ class str(Sequence[str]):
419
419
def maketrans (__x : str , __y : str , __z : str | None = ...) -> dict [int , int | None ]: ...
420
420
def __add__ (self , __s : str ) -> str : ...
421
421
# Incompatible with Sequence.__contains__
422
- def __contains__ (self , __o : str ) -> bool : ... # type: ignore
422
+ def __contains__ (self , __o : str ) -> bool : ... # type: ignore[override]
423
423
def __eq__ (self , __x : object ) -> bool : ...
424
424
def __ge__ (self , __x : str ) -> bool : ...
425
425
def __getitem__ (self , __i : int | slice ) -> str : ...
@@ -528,7 +528,7 @@ class bytes(ByteString):
528
528
def __rmul__ (self , __n : SupportsIndex ) -> bytes : ...
529
529
def __mod__ (self , __value : Any ) -> bytes : ...
530
530
# Incompatible with Sequence.__contains__
531
- def __contains__ (self , __o : SupportsIndex | bytes ) -> bool : ... # type: ignore
531
+ def __contains__ (self , __o : SupportsIndex | bytes ) -> bool : ... # type: ignore[override]
532
532
def __eq__ (self , __x : object ) -> bool : ...
533
533
def __ne__ (self , __x : object ) -> bool : ...
534
534
def __lt__ (self , __x : bytes ) -> bool : ...
@@ -620,7 +620,7 @@ class bytearray(MutableSequence[int], ByteString):
620
620
def __iter__ (self ) -> Iterator [int ]: ...
621
621
def __str__ (self ) -> str : ...
622
622
def __repr__ (self ) -> str : ...
623
- __hash__ : None # type: ignore
623
+ __hash__ : None # type: ignore[assignment]
624
624
@overload
625
625
def __getitem__ (self , __i : SupportsIndex ) -> int : ...
626
626
@overload
@@ -637,7 +637,7 @@ class bytearray(MutableSequence[int], ByteString):
637
637
def __imul__ (self , __n : SupportsIndex ) -> bytearray : ...
638
638
def __mod__ (self , __value : Any ) -> bytes : ...
639
639
# Incompatible with Sequence.__contains__
640
- def __contains__ (self , __o : SupportsIndex | bytes ) -> bool : ... # type: ignore
640
+ def __contains__ (self , __o : SupportsIndex | bytes ) -> bool : ... # type: ignore[override]
641
641
def __eq__ (self , __x : object ) -> bool : ...
642
642
def __ne__ (self , __x : object ) -> bool : ...
643
643
def __lt__ (self , __x : bytes ) -> bool : ...
@@ -728,7 +728,7 @@ class slice(object):
728
728
def __init__ (self , __stop : Any ) -> None : ...
729
729
@overload
730
730
def __init__ (self , __start : Any , __stop : Any , __step : Any = ...) -> None : ...
731
- __hash__ : None # type: ignore
731
+ __hash__ : None # type: ignore[assignment]
732
732
def indices (self , __len : SupportsIndex ) -> tuple [int , int , int ]: ...
733
733
734
734
class tuple (Sequence [_T_co ], Generic [_T_co ]):
@@ -785,7 +785,7 @@ class list(MutableSequence[_T], Generic[_T]):
785
785
def __len__ (self ) -> int : ...
786
786
def __iter__ (self ) -> Iterator [_T ]: ...
787
787
def __str__ (self ) -> str : ...
788
- __hash__ : None # type: ignore
788
+ __hash__ : None # type: ignore[assignment]
789
789
@overload
790
790
def __getitem__ (self , __i : SupportsIndex ) -> _T : ...
791
791
@overload
@@ -850,12 +850,12 @@ class dict(MutableMapping[_KT, _VT], Generic[_KT, _VT]):
850
850
if sys .version_info >= (3 , 8 ):
851
851
def __reversed__ (self ) -> Iterator [_KT ]: ...
852
852
def __str__ (self ) -> str : ...
853
- __hash__ : None # type: ignore
853
+ __hash__ : None # type: ignore[assignment]
854
854
if sys .version_info >= (3 , 9 ):
855
855
def __class_getitem__ (cls , __item : Any ) -> GenericAlias : ...
856
856
def __or__ (self , __value : Mapping [_T1 , _T2 ]) -> dict [_KT | _T1 , _VT | _T2 ]: ...
857
857
def __ror__ (self , __value : Mapping [_T1 , _T2 ]) -> dict [_KT | _T1 , _VT | _T2 ]: ...
858
- def __ior__ (self , __value : Mapping [_KT , _VT ]) -> dict [_KT , _VT ]: ... # type: ignore
858
+ def __ior__ (self , __value : Mapping [_KT , _VT ]) -> dict [_KT , _VT ]: ... # type: ignore[misc]
859
859
860
860
class set (MutableSet [_T ], Generic [_T ]):
861
861
def __init__ (self , __iterable : Iterable [_T ] = ...) -> None : ...
@@ -892,7 +892,7 @@ class set(MutableSet[_T], Generic[_T]):
892
892
def __lt__ (self , __s : AbstractSet [object ]) -> bool : ...
893
893
def __ge__ (self , __s : AbstractSet [object ]) -> bool : ...
894
894
def __gt__ (self , __s : AbstractSet [object ]) -> bool : ...
895
- __hash__ : None # type: ignore
895
+ __hash__ : None # type: ignore[assignment]
896
896
if sys .version_info >= (3 , 9 ):
897
897
def __class_getitem__ (cls , __item : Any ) -> GenericAlias : ...
898
898
@@ -938,7 +938,7 @@ class range(Sequence[int]):
938
938
@overload
939
939
def __init__ (self , __start : SupportsIndex , __stop : SupportsIndex , __step : SupportsIndex = ...) -> None : ...
940
940
def count (self , __value : int ) -> int : ...
941
- def index (self , __value : int ) -> int : ... # type: ignore
941
+ def index (self , __value : int ) -> int : ... # type: ignore[override]
942
942
def __len__ (self ) -> int : ...
943
943
def __contains__ (self , __o : object ) -> bool : ...
944
944
def __iter__ (self ) -> Iterator [int ]: ...
@@ -968,10 +968,10 @@ class property(object):
968
968
def __delete__ (self , __obj : Any ) -> None : ...
969
969
970
970
@final
971
- class _NotImplementedType (Any ): # type: ignore
971
+ class _NotImplementedType (Any ): # type: ignore[misc]
972
972
# A little weird, but typing the __call__ as NotImplemented makes the error message
973
973
# for NotImplemented() much better
974
- __call__ : NotImplemented # type: ignore
974
+ __call__ : NotImplemented # type: ignore[valid-type]
975
975
976
976
NotImplemented : _NotImplementedType
977
977
0 commit comments