Skip to content

Additional testing for AsyncArray, Array #3049

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 21 commits into from
May 15, 2025

Conversation

brokkoli71
Copy link
Member

@brokkoli71 brokkoli71 commented May 8, 2025

TODO:

  • Add unit tests and/or doctests in docstrings
  • Add docstrings and API docs for any new/modified user-facing classes and functions
  • New/modified features documented in docs/user-guide/*.rst
  • Changes documented as a new file in changes/
  • GitHub Actions have all passed
  • Test coverage is 100% (Codecov passes)

@github-actions github-actions bot added the needs release notes Automatically applied to PRs which haven't added release notes label May 8, 2025
return ArrayV2Metadata.from_dict(data)
else:
raise ValueError(f"Invalid zarr_format: {zarr_format}. Expected 2 or 3")
raise TypeError
Copy link
Member Author

@brokkoli71 brokkoli71 May 9, 2025

Choose a reason for hiding this comment

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

is this necessary? If the data argument follows the type annotations, this should not be possible

Copy link
Contributor

Choose a reason for hiding this comment

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

but if the data doesn't follow the type hint, then you can get unpredictable errors

@brokkoli71 brokkoli71 marked this pull request as ready for review May 13, 2025 11:56
@github-actions github-actions bot removed the needs release notes Automatically applied to PRs which haven't added release notes label May 13, 2025
Copy link
Contributor

@d-v-b d-v-b left a comment

Choose a reason for hiding this comment

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

looks great, thanks!

@d-v-b d-v-b enabled auto-merge (squash) May 14, 2025 09:04
@d-v-b d-v-b disabled auto-merge May 14, 2025 09:08
@d-v-b d-v-b enabled auto-merge (squash) May 14, 2025 09:09
@dstansby
Copy link
Contributor

For some reason the button to merge main into here has gone (I'm guessing becaue there aren't perms for maintainers to push to the branch) @brokkoli71 can you merge main in to this, and it should automerge if the tests pass

@d-v-b d-v-b merged commit 8826415 into zarr-developers:main May 15, 2025
29 of 30 checks passed
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.

3 participants