Skip to content

Commit 8fe4205

Browse files
committed
reshape: copy kwarg is keyword-only
1 parent 0adac27 commit 8fe4205

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

array_api_compat/common/_aliases.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ def reshape(
410410
/,
411411
shape: Tuple[int, ...],
412412
xp: Namespace,
413+
*,
413414
copy: Optional[bool] = None,
414415
**kwargs,
415416
) -> Array:

array_api_compat/torch/_aliases.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@ def where(condition: Array, x1: Array, x2: Array, /) -> Array:
539539
def reshape(x: Array,
540540
/,
541541
shape: Tuple[int, ...],
542+
*,
542543
copy: Optional[bool] = None,
543544
**kwargs) -> Array:
544545
if copy is not None:

0 commit comments

Comments
 (0)