Skip to content

Conversation

@d-v-b
Copy link
Contributor

@d-v-b d-v-b commented Jan 25, 2026

Fixes #3667 and #3666 by updating the docs about the default write_empty_chunks value, and adds some API to Array and AsyncArray so that the doc update could be done properly (i.e., without using private API).

The new API on Array and AsyncArray is as follows:

  • AsyncArray.config is public (it was private)
  • Array.config is a new property that exposes ._async_array.config
  • AsyncArray and Array both have a .with_config method that creates a new AsyncArray / Array with an updated config.

This means users can now easily check the runtime configuration of an array, and get a new array (pointing to the same data) with a different configuration if they want.

- Make .config attribute of AsyncArray public
- Add .with_config method to Array and AsyncArray
- Use .config attribute in docs
@github-actions github-actions bot added the needs release notes Automatically applied to PRs which haven't added release notes label Jan 25, 2026
@codspeed-hq
Copy link

codspeed-hq bot commented Jan 25, 2026

CodSpeed Performance Report

Merging this PR will not alter performance

Comparing d-v-b:feat/with-config (5d1df75) with main (0e61449)

Summary

✅ 48 untouched benchmarks
⏩ 6 skipped benchmarks1

Footnotes

  1. 6 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@github-actions github-actions bot removed the needs release notes Automatically applied to PRs which haven't added release notes label Jan 26, 2026
@d-v-b d-v-b requested a review from a team January 26, 2026 13:56
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.

getting the write_empty_chunks attribute of an array's config is onerous

2 participants