@@ -1541,7 +1541,8 @@ async def tree(self, expand: bool | None = None, level: int | None = None) -> An
15411541 async def empty (
15421542 self , * , name : str , shape : ChunkCoords , ** kwargs : Any
15431543 ) -> AsyncArray [ArrayV2Metadata ] | AsyncArray [ArrayV3Metadata ]:
1544- """Create an empty array in this Group.
1544+ """Create an empty array with the specified shape in this Group. The contents will
1545+ be filled with the array's fill value or zeros if no fill value is provided.
15451546
15461547 Parameters
15471548 ----------
@@ -1558,7 +1559,6 @@ async def empty(
15581559 retrieve data from an empty Zarr array, any values may be returned,
15591560 and these are not guaranteed to be stable from one access to the next.
15601561 """
1561-
15621562 return await async_api .empty (shape = shape , store = self .store_path , path = name , ** kwargs )
15631563
15641564 async def zeros (
@@ -1635,7 +1635,8 @@ async def full(
16351635 async def empty_like (
16361636 self , * , name : str , data : async_api .ArrayLike , ** kwargs : Any
16371637 ) -> AsyncArray [ArrayV2Metadata ] | AsyncArray [ArrayV3Metadata ]:
1638- """Create an empty sub-array like `data`.
1638+ """Create an empty sub-array like `data`. The contents will be filled with
1639+ the array's fill value or zeros if no fill value is provided.
16391640
16401641 Parameters
16411642 ----------
@@ -2528,7 +2529,8 @@ def require_array(self, name: str, *, shape: ShapeLike, **kwargs: Any) -> Array:
25282529
25292530 @_deprecate_positional_args
25302531 def empty (self , * , name : str , shape : ChunkCoords , ** kwargs : Any ) -> Array :
2531- """Create an empty array in this Group.
2532+ """Create an empty array with the specified shape in this Group. The contents will be filled with
2533+ the array's fill value or zeros if no fill value is provided.
25322534
25332535 Parameters
25342536 ----------
@@ -2617,7 +2619,8 @@ def full(
26172619
26182620 @_deprecate_positional_args
26192621 def empty_like (self , * , name : str , data : async_api .ArrayLike , ** kwargs : Any ) -> Array :
2620- """Create an empty sub-array like `data`.
2622+ """Create an empty sub-array like `data`. The contents will be filled
2623+ with the array's fill value or zeros if no fill value is provided.
26212624
26222625 Parameters
26232626 ----------
@@ -2632,6 +2635,12 @@ def empty_like(self, *, name: str, data: async_api.ArrayLike, **kwargs: Any) ->
26322635 -------
26332636 Array
26342637 The new array.
2638+
2639+ Notes
2640+ -----
2641+ The contents of an empty Zarr array are not defined. On attempting to
2642+ retrieve data from an empty Zarr array, any values may be returned,
2643+ and these are not guaranteed to be stable from one access to the next.
26352644 """
26362645 return Array (self ._sync (self ._async_group .empty_like (name = name , data = data , ** kwargs )))
26372646
0 commit comments