3434
3535
3636@overload
37- def apply_where ( # type: ignore[explicit-any,decorated-any] # numpydoc ignore=GL08
37+ def apply_where ( # numpydoc ignore=GL08
3838 cond : Array ,
3939 args : Array | tuple [Array , ...],
4040 f1 : Callable [..., Array ],
@@ -46,7 +46,7 @@ def apply_where( # type: ignore[explicit-any,decorated-any] # numpydoc ignore=G
4646
4747
4848@overload
49- def apply_where ( # type: ignore[explicit-any,decorated-any] # numpydoc ignore=GL08
49+ def apply_where ( # numpydoc ignore=GL08
5050 cond : Array ,
5151 args : Array | tuple [Array , ...],
5252 f1 : Callable [..., Array ],
@@ -57,7 +57,7 @@ def apply_where( # type: ignore[explicit-any,decorated-any] # numpydoc ignore=G
5757) -> Array : ...
5858
5959
60- def apply_where ( # type: ignore[explicit-any] # numpydoc ignore=PR01,PR02
60+ def apply_where ( # numpydoc ignore=PR01,PR02
6161 cond : Array ,
6262 args : Array | tuple [Array , ...],
6363 f1 : Callable [..., Array ],
@@ -143,7 +143,7 @@ def apply_where( # type: ignore[explicit-any] # numpydoc ignore=PR01,PR02
143143 return _apply_where (cond , f1 , f2 , fill_value , * args_ , xp = xp )
144144
145145
146- def _apply_where ( # type: ignore[explicit-any] # numpydoc ignore=PR01,RT01
146+ def _apply_where ( # numpydoc ignore=PR01,RT01
147147 cond : Array ,
148148 f1 : Callable [..., Array ],
149149 f2 : Callable [..., Array ] | None ,
@@ -813,8 +813,7 @@ def pad(
813813 else :
814814 pad_width_seq = cast (list [tuple [int , int ]], list (pad_width ))
815815
816- # https://github.com/python/typeshed/issues/13376
817- slices : list [slice ] = [] # type: ignore[explicit-any]
816+ slices : list [slice ] = []
818817 newshape : list [int ] = []
819818 for ax , w_tpl in enumerate (pad_width_seq ):
820819 if len (w_tpl ) != 2 :
@@ -826,6 +825,7 @@ def pad(
826825 if w_tpl [0 ] == 0 and w_tpl [1 ] == 0 :
827826 sl = slice (None , None , None )
828827 else :
828+ stop : int | None
829829 start , stop = w_tpl
830830 stop = None if stop == 0 else - stop
831831
0 commit comments