Skip to content

Commit 6db5e0b

Browse files
committed
fix merge
1 parent 0da7105 commit 6db5e0b

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

src/zarr/api/synchronous.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ def from_array(
927927
dimension_names: Iterable[str] | None = None,
928928
storage_options: dict[str, Any] | None = None,
929929
overwrite: bool = False,
930-
config: ArrayConfig | ArrayConfigLike | None = None,
930+
config: ArrayConfigLike | None = None,
931931
) -> Array:
932932
"""Create an array from an existing array or array-like.
933933

src/zarr/core/array.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4433,7 +4433,7 @@ async def create_array(
44334433
store_path = await make_store_path(
44344434
store, path=name, mode=mode, storage_options=storage_options
44354435
)
4436-
result = await init_array(
4436+
return await init_array(
44374437
store_path=store_path,
44384438
shape=shape_parsed,
44394439
dtype=dtype_parsed,
@@ -4449,8 +4449,8 @@ async def create_array(
44494449
chunk_key_encoding=chunk_key_encoding,
44504450
dimension_names=dimension_names,
44514451
overwrite=overwrite,
4452-
config=config,)
4453-
return AsyncArray(metadata=meta, store_path=store_path, config=config_parsed)
4452+
config=config,
4453+
)
44544454

44554455

44564456
def _parse_keep_array_attr(

tests/test_indexing.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,8 +1963,3 @@ def test_iter_chunk_regions():
19631963
assert_array_equal(a[region], np.ones_like(a[region]))
19641964
a[region] = 0
19651965
assert_array_equal(a[region], np.zeros_like(a[region]))
1966-
1967-
1968-
def test_is_total_slice():
1969-
assert is_total_slice((0, slice(4, 6)), (1, 2))
1970-
assert is_total_slice((slice(0, 1, None), slice(4, 6)), (1, 2))

0 commit comments

Comments
 (0)