Skip to content

Commit 407a8ae

Browse files
authored
fix: resolve typo in broadcast_to to require an exception
PR-URL: #897 Ref: https://github.com/data-apis/array-api/pull/888/files#r1944366064
1 parent f73baff commit 407a8ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/array_api_stubs/_draft/manipulation_functions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def broadcast_to(x: array, /, shape: Tuple[int, ...]) -> array:
4242
Parameters
4343
----------
4444
x: array
45-
array to broadcast. Must be capable of being broadcast to the specified ``shape`` (see :ref:`broadcasting`). If the array is incompatible with the specified shape, the function should raise an exception.
45+
array to broadcast. Must be capable of being broadcast to the specified ``shape`` (see :ref:`broadcasting`). If the array is incompatible with the specified shape, the function must raise an exception.
4646
shape: Tuple[int, ...]
4747
array shape.
4848

0 commit comments

Comments
 (0)