-
-
Notifications
You must be signed in to change notification settings - Fork 329
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
Conversation
src/zarr/core/array.py
Outdated
return ArrayV2Metadata.from_dict(data) | ||
else: | ||
raise ValueError(f"Invalid zarr_format: {zarr_format}. Expected 2 or 3") | ||
raise TypeError |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great, thanks!
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 |
zarr/core/array.py
AsyncArray
,Array
TODO:
docs/user-guide/*.rst
changes/