Skip to content

Commit ddf6260

Browse files
committed
fix
1 parent 6cd171b commit ddf6260

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

array_api_strict/_utility_functions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from typing import Any
44

55
import numpy as np
6+
import numpy.typing as npt
67

78
from ._array_object import Array
89
from ._dtypes import _numeric_dtypes
@@ -56,7 +57,7 @@ def diff(
5657
# currently specified.
5758

5859
# NumPy does not support prepend=None or append=None
59-
kwargs: dict[str, int | npt.NDArray[Any]] = {"axis": axis, "n", n}
60+
kwargs: dict[str, int | npt.NDArray[Any]] = {"axis": axis, "n": n}
6061
if prepend is not None:
6162
if prepend.device != x.device:
6263
raise ValueError(f"Arrays from two different devices ({prepend.device} and {x.device}) can not be combined.")

0 commit comments

Comments
 (0)