File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1+ Make config param optional in init_array
Original file line number Diff line number Diff line change @@ -4223,7 +4223,7 @@ async def init_array(
42234223 chunk_key_encoding : ChunkKeyEncodingLike | None = None ,
42244224 dimension_names : DimensionNames = None ,
42254225 overwrite : bool = False ,
4226- config : ArrayConfigLike | None ,
4226+ config : ArrayConfigLike | None = None ,
42274227) -> AsyncArray [ArrayV3Metadata ] | AsyncArray [ArrayV2Metadata ]:
42284228 """Create and persist an array metadata document.
42294229
@@ -4304,7 +4304,7 @@ async def init_array(
43044304 overwrite : bool, default False
43054305 Whether to overwrite an array with the same name in the store, if one exists.
43064306 config : ArrayConfigLike or None, optional
4307- Configuration for this array.
4307+ Configuration for this array (default is None) .
43084308
43094309 Returns
43104310 -------
Original file line number Diff line number Diff line change @@ -46,4 +46,4 @@ def has_cupy() -> bool:
4646
4747# Decorator for GPU tests
4848def gpu_test (func : T ) -> T :
49- return cast ("T" , gpu_mark (skip_if_no_gpu (func )))
49+ return cast (T , gpu_mark (skip_if_no_gpu (func )))
Original file line number Diff line number Diff line change @@ -440,7 +440,6 @@ async def test_init_order_warns() -> None:
440440 store_path = StorePath (store = MemoryStore ()),
441441 shape = (1 ,),
442442 dtype = "uint8" ,
443- config = None ,
444443 zarr_format = 3 ,
445444 order = "F" ,
446445 )
You can’t perform that action at this time.
0 commit comments