Skip to content

Commit 71edc05

Browse files
committed
typing
1 parent a54357b commit 71edc05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/array_api_extra/_delegation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def pad(
117117
pad_width = xp.asarray(pad_width)
118118
pad_width = xp.broadcast_to(pad_width, (x.ndim, 2))
119119
pad_width = xp.flip(pad_width, axis=(0,)).flatten()
120-
return xp.nn.functional.pad(x, tuple(pad_width), value=constant_values)
120+
return xp.nn.functional.pad(x, tuple(pad_width), value=constant_values) # type: ignore[arg-type] # pyright: ignore[reportArgumentType]
121121

122122
if _delegate(xp, NUMPY, JAX, CUPY):
123123
return xp.pad(x, pad_width, mode, constant_values=constant_values)

0 commit comments

Comments
 (0)