Skip to content

Add type annotations for chunks parameter in from_array and rechunk#12429

Open
omarwael-24 wants to merge 12 commits into
dask:mainfrom
omarwael-24:fix-chunks-type-hints
Open

Add type annotations for chunks parameter in from_array and rechunk#12429
omarwael-24 wants to merge 12 commits into
dask:mainfrom
omarwael-24:fix-chunks-type-hints

Conversation

@omarwael-24

Copy link
Copy Markdown

Description

This PR adds comprehensive type hints for the chunks parameter in both dask/array/core.py (from_array function) and dask/array/rechunk.py (rechunk function).

Using Any and internal type adjustments handles the complex dynamic behavior of the chunks parameter across Dask's internal codebase while maintaining proper static verification.

Checklist

  • Closes #xxxx
  • Tests added / passed
  • Passes pixi run lint

@omarwael-24 omarwael-24 force-pushed the fix-chunks-type-hints branch from df66a6b to fc4bdde Compare May 29, 2026 20:23
@github-actions

Copy link
Copy Markdown
Contributor

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

     25 files  ±0       25 suites  ±0   7h 0m 48s ⏱️ + 1m 31s
 18 634 tests ±0   17 249 ✅ ±0   1 385 💤 ±0  0 ❌ ±0 
378 863 runs  ±0  328 084 ✅ +1  50 779 💤  - 1  0 ❌ ±0 

Results for commit fc4bdde. ± Comparison against base commit a588170.

@crusaderky crusaderky 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.

you pushed your whole venv/.
Please

  1. remove it from your branch
  2. merge from main
  3. ensure that pixi run lint passes
  4. manually go through all of your changes and ensure that you (a human) are satisfied with them, in other words everything passes your own review
  5. ping me again

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.

2 participants