Skip to content

Commit f49f907

Browse files
Update src/array_api_extra/_delegation.py
Co-authored-by: Guido Imperiale <crusaderky@gmail.com>
1 parent 620372c commit f49f907

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/array_api_extra/_delegation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ def one_hot(
137137
dtype : DType, optional
138138
The dtype of the return value. Defaults to the default float dtype (usually
139139
float64).
140-
axis : int or tuple of ints, optional
141-
Position(s) in the expanded axes where the new axis is placed.
140+
axis : int, optional
141+
Position in the expanded axes where the new axis is placed. Default: -1.
142142
xp : array_namespace, optional
143143
The standard-compatible namespace for `x`. Default: infer.
144144

0 commit comments

Comments
 (0)