8000 PR: Transform data_type_functions.md to rst by steff456 · Pull Request #349 · data-apis/array-api · GitHub
[go: up one dir, main page]

Skip to content

PR: Transform data_type_functions.md to rst #349

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Feb 7, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove raises section
  • Loading branch information
steff456 committed Feb 7, 2022
commit 1e4dd7c097e2a8aee121cb161ad0373832881cbb
7 changes: 1 addition & 6 deletions spec/API_specification/signatures/data_type_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,7 @@ def broadcast_to(x: array, /, shape: Tuple[int, ...]) -> array:
Returns
-------
out: array
an array having a specified shape. Must have the same data type as ``x``.


**Raises**

if the array is incompatible with the specified shape (see :ref:`broadcasting`).
an array having a specified shape. Must have the same data type as ``x``. If the array is incompatible with the specified shape (see :ref:`broadcasting`), the function should raise an exception.
"""

def can_cast(from_: Union[dtype, array], to: dtype, /) -> bool:
Expand Down
0