Skip to content

Commit 47daa7e

Browse files
support other array types
Co-authored-by: Tom Augspurger <[email protected]>
1 parent 2eaa79d commit 47daa7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zarr/api/asynchronous.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ async def save_array(
393393
_handle_zarr_version_or_format(zarr_version=zarr_version, zarr_format=zarr_format)
394394
or _default_zarr_version()
395395
)
396-
if not isinstance(arr, np.ndarray):
396+
if not isinstance(arr, NDArrayLike):
397397
raise TypeError("arr argument must be numpy array")
398398

399399
mode = kwargs.pop("mode", None)

0 commit comments

Comments
 (0)