Skip to content

Commit 6c54b6b

Browse files
committed
Fix permute_dims
1 parent d19c1a2 commit 6c54b6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_compat/common/_aliases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def var(
271271
return xp.var(x, axis=axis, ddof=correction, keepdims=keepdims)
272272

273273
# Unlike transpose(), the axes argument to permute_dims() is required.
274-
def permute_dims(x: ndarray, /, xp, axes: Tuple[int, ...]) -> ndarray:
274+
def permute_dims(x: ndarray, /, axes: Tuple[int, ...], xp) -> ndarray:
275275
return xp.transpose(x, axes)
276276

277277
# Creation functions add the device keyword (which does nothing for NumPy)

0 commit comments

Comments
 (0)