@@ -1498,7 +1498,8 @@ async def tree(self, expand: bool | None = None, level: int | None = None) -> An
14981498 async def empty (
14991499 self , * , name : str , shape : ChunkCoords , ** kwargs : Any
15001500 ) -> AsyncArray [ArrayV2Metadata ] | AsyncArray [ArrayV3Metadata ]:
1501- """Create an empty array in this Group.
1501+ """Create an empty array with the specified shape in this Group. The contents will
1502+ be filled with the array's fill value or zeros if no fill value is provided.
15021503
15031504 Parameters
15041505 ----------
@@ -1592,7 +1593,8 @@ async def full(
15921593 async def empty_like (
15931594 self , * , name : str , data : async_api .ArrayLike , ** kwargs : Any
15941595 ) -> AsyncArray [ArrayV2Metadata ] | AsyncArray [ArrayV3Metadata ]:
1595- """Create an empty sub-array like `data`.
1596+ """Create an empty sub-array like `data`. The contents will be filled with
1597+ the array's fill value or zeros if no fill value is provided.
15961598
15971599 Parameters
15981600 ----------
@@ -2442,7 +2444,8 @@ def require_array(self, name: str, *, shape: ShapeLike, **kwargs: Any) -> Array:
24422444
24432445 @_deprecate_positional_args
24442446 def empty (self , * , name : str , shape : ChunkCoords , ** kwargs : Any ) -> Array :
2445- """Create an empty array in this Group.
2447+ """Create an empty array with the specified shape in this Group. The contents will be filled with
2448+ the array's fill value or zeros if no fill value is provided.
24462449
24472450 Parameters
24482451 ----------
@@ -2453,11 +2456,6 @@ def empty(self, *, name: str, shape: ChunkCoords, **kwargs: Any) -> Array:
24532456 **kwargs
24542457 Keyword arguments passed to :func:`zarr.api.asynchronous.create`.
24552458
2456- Notes
2457- -----
2458- The contents of an empty Zarr array are not defined. On attempting to
2459- retrieve data from an empty Zarr array, any values may be returned,
2460- and these are not guaranteed to be stable from one access to the next.
24612459 """
24622460 return Array (self ._sync (self ._async_group .empty (name = name , shape = shape , ** kwargs )))
24632461
@@ -2531,7 +2529,8 @@ def full(
25312529
25322530 @_deprecate_positional_args
25332531 def empty_like (self , * , name : str , data : async_api .ArrayLike , ** kwargs : Any ) -> Array :
2534- """Create an empty sub-array like `data`.
2532+ """Create an empty sub-array like `data`. The contents will be filled
2533+ with the array's fill value or zeros if no fill value is provided.
25352534
25362535 Parameters
25372536 ----------
0 commit comments