Skip to content

Commit 2706f17

Browse files
committed
fix mypy and readthedocs
1 parent a2373ad commit 2706f17

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/zarr/api/synchronous.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,7 @@ def from_array(
987987
- "auto": a default serializer will be used. These defaults can be changed by modifying the value of
988988
`array.v3_default_serializer` in :mod:`zarr.core.config`.
989989
- "keep": Retain the serializer of the input array if it is a zarr Array.
990+
990991
fill_value : Any, optional
991992
Fill value for the array.
992993
If not specified, defaults to the fill value of the data array.
@@ -1068,7 +1069,7 @@ def from_array(
10681069
<Array memory://140678602965568 shape=(2, 2) dtype=int64>
10691070
>>> arr5[...]
10701071
[[0 0]
1071-
[0 0]]
1072+
[0 0]]
10721073
"""
10731074
return Array(
10741075
sync(

tests/test_array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1370,6 +1370,6 @@ async def test_from_array_arraylike(
13701370
src, store=store, chunks=chunks, write_data=write_data, fill_value=fill_value
13711371
)
13721372
if write_data:
1373-
np.testing.assert_array_equal(result[...], src)
1373+
np.testing.assert_array_equal(result[...], np.array(src))
13741374
else:
13751375
np.testing.assert_array_equal(result[...], np.full_like(src, fill_value))

0 commit comments

Comments
 (0)