Skip to content

fix: define dask reshape copy behavior - #459

Draft
stanbot8 wants to merge 1 commit into
data-apis:mainfrom
stanbot8:fix/dask-reshape-copy
Draft

fix: define dask reshape copy behavior#459
stanbot8 wants to merge 1 commit into
data-apis:mainfrom
stanbot8:fix/dask-reshape-copy

Conversation

@stanbot8

@stanbot8 stanbot8 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

The shared Dask reshape wrapper fails for scalar and 0-size copy=False cases.

This change routes Dask reshape(..., copy=False) to the native lazy operation and enables the Array API reshape test.

This change fixes the Dask issues at issue 446.

@ev-br

ev-br commented Jul 29, 2026

Copy link
Copy Markdown
Member

This currently swallows copy=False, no?

@stanbot8
stanbot8 marked this pull request as draft July 29, 2026 22:30
@stanbot8

stanbot8 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

Yes, it currently treats copy=False like copy=None.

I've opened a pull request to Dask that adds the copy contract.

I will keep this PR as a draft and update the wrapper to forward copy if Dask accepts the API.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants