-
-
Notifications
You must be signed in to change notification settings - Fork 328
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
base: main
Are you sure you want to change the base?
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
AsyncArray
,Array
TODO:
docs/user-guide/*.rst
changes/