Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/3391.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Make config param optional in init_array
4 changes: 2 additions & 2 deletions src/zarr/core/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -4444,7 +4444,7 @@ async def init_array(
chunk_key_encoding: ChunkKeyEncodingLike | None = None,
dimension_names: DimensionNames = None,
overwrite: bool = False,
config: ArrayConfigLike | None,
config: ArrayConfigLike | None = None,
) -> AsyncArray[ArrayV3Metadata] | AsyncArray[ArrayV2Metadata]:
"""Create and persist an array metadata document.

Expand Down Expand Up @@ -4525,7 +4525,7 @@ async def init_array(
overwrite : bool, default False
Whether to overwrite an array with the same name in the store, if one exists.
config : ArrayConfigLike or None, optional
Configuration for this array.
Configuration for this array (default is None).

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion src/zarr/testing/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ def has_cupy() -> bool:

# Decorator for GPU tests
def gpu_test(func: T) -> T:
return cast("T", gpu_mark(skip_if_no_gpu(func)))
return cast(T, gpu_mark(skip_if_no_gpu(func)))
1 change: 0 additions & 1 deletion tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,6 @@ async def test_init_order_warns() -> None:
store_path=StorePath(store=MemoryStore()),
shape=(1,),
dtype="uint8",
config=None,
zarr_format=3,
order="F",
)
Expand Down
Loading