Skip to content

Commit 93f2591

Browse files
Update src/array_api_extra/_delegation.py
Co-authored-by: Guido Imperiale <[email protected]>
1 parent ed7fd25 commit 93f2591

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
@@ -31,7 +31,7 @@ def _delegate(xp: ModuleType, *backends: Backend) -> bool:
3131
def pad(
3232
x: Array,
3333
pad_width: int | tuple[int, int] | list[tuple[int, int]],
34-
mode: str = "constant",
34+
mode: Literal["constant"] = "constant",
3535
*,
3636
constant_values: bool | int | float | complex = 0,
3737
xp: ModuleType | None = None,

0 commit comments

Comments
 (0)