Skip to content

Ensure that astype converts input to marray - #175

Open
mdhaber wants to merge 1 commit into
mainfrom
gh161
Open

Ensure that astype converts input to marray#175
mdhaber wants to merge 1 commit into
mainfrom
gh161

Conversation

@mdhaber

@mdhaber mdhaber commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Closes gh-161.

@lucascolley lucascolley left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

CI is rather unhappy

@mdhaber

mdhaber commented Aug 5, 2026

Copy link
Copy Markdown
Owner Author

I see. It has to do with data-apis/array-api#1009. I'd appreciate your thoughts there.

It's a royal pain if the decision is that astype with copy=False must return the input object but asarray can create a new object. This would mean that astype can't easily use asarray for input standardization. And the whole point of this issue is that MArray tries to be flexible when the input is not already an MArray (but is instead an array of the backend library).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

astype with copy=False does not convert input to MArray

2 participants