34
34
35
35
36
36
@overload
37
- def apply_where ( # type: ignore[explicit-any,decorated-any] # numpydoc ignore=GL08
37
+ def apply_where ( # numpydoc ignore=GL08
38
38
cond : Array ,
39
39
args : Array | tuple [Array , ...],
40
40
f1 : Callable [..., Array ],
@@ -46,7 +46,7 @@ def apply_where( # type: ignore[explicit-any,decorated-any] # numpydoc ignore=G
46
46
47
47
48
48
@overload
49
- def apply_where ( # type: ignore[explicit-any,decorated-any] # numpydoc ignore=GL08
49
+ def apply_where ( # numpydoc ignore=GL08
50
50
cond : Array ,
51
51
args : Array | tuple [Array , ...],
52
52
f1 : Callable [..., Array ],
@@ -57,7 +57,7 @@ def apply_where( # type: ignore[explicit-any,decorated-any] # numpydoc ignore=G
57
57
) -> Array : ...
58
58
59
59
60
- def apply_where ( # type: ignore[explicit-any] # numpydoc ignore=PR01,PR02
60
+ def apply_where ( # numpydoc ignore=PR01,PR02
61
61
cond : Array ,
62
62
args : Array | tuple [Array , ...],
63
63
f1 : Callable [..., Array ],
@@ -143,7 +143,7 @@ def apply_where( # type: ignore[explicit-any] # numpydoc ignore=PR01,PR02
143
143
return _apply_where (cond , f1 , f2 , fill_value , * args_ , xp = xp )
144
144
145
145
146
- def _apply_where ( # type: ignore[explicit-any] # numpydoc ignore=PR01,RT01
146
+ def _apply_where ( # numpydoc ignore=PR01,RT01
147
147
cond : Array ,
148
148
f1 : Callable [..., Array ],
149
149
f2 : Callable [..., Array ] | None ,
@@ -813,8 +813,7 @@ def pad(
813
813
else :
814
814
pad_width_seq = cast (list [tuple [int , int ]], list (pad_width ))
815
815
816
- # https://github.com/python/typeshed/issues/13376
817
- slices : list [slice ] = [] # type: ignore[explicit-any]
816
+ slices : list [slice ] = []
818
817
newshape : list [int ] = []
819
818
for ax , w_tpl in enumerate (pad_width_seq ):
820
819
if len (w_tpl ) != 2 :
@@ -826,6 +825,7 @@ def pad(
826
825
if w_tpl [0 ] == 0 and w_tpl [1 ] == 0 :
827
826
sl = slice (None , None , None )
828
827
else :
828
+ stop : int | None
829
829
start , stop = w_tpl
830
830
stop = None if stop == 0 else - stop
831
831
0 commit comments