Skip to content

BUG: Fix the signature for np.array_api.take #24187

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 1 commit into from
Jul 16, 2023

Conversation

asmeurer
Copy link
Member

The array_api take() doesn't flatten the array by default, so the axis argument must be provided for multidimensional arrays. However, it should be optional when the input array is 1-D, which the signature previously did not allow.

c.f. data-apis/array-api#644

The array_api take() doesn't flatten the array by default, so the axis
argument must be provided for multidimensional arrays. However, it should be
optional when the input array is 1-D, which the signature previously did not
allow.

c.f. data-apis/array-api#644
Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @asmeurer

@rgommers rgommers merged commit eef080a into numpy:main Jul 16, 2023
@rgommers rgommers added the 09 - Backport-Candidate PRs tagged should be backported label Jul 16, 2023
@rgommers rgommers added this to the 2.0.0 release milestone Jul 16, 2023
@charris charris modified the milestones: 2.0.0 release, 1.25.2 release Jul 23, 2023
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Jul 23, 2023
@charris charris removed this from the 1.25.2 release milestone Jul 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants