We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed7fd25 commit 93f2591Copy full SHA for 93f2591
src/array_api_extra/_delegation.py
@@ -31,7 +31,7 @@ def _delegate(xp: ModuleType, *backends: Backend) -> bool:
31
def pad(
32
x: Array,
33
pad_width: int | tuple[int, int] | list[tuple[int, int]],
34
- mode: str = "constant",
+ mode: Literal["constant"] = "constant",
35
*,
36
constant_values: bool | int | float | complex = 0,
37
xp: ModuleType | None = None,
0 commit comments