@@ -1148,6 +1148,9 @@ async def create_dataset(
11481148 ) -> AsyncArray [ArrayV2Metadata ] | AsyncArray [ArrayV3Metadata ]:
11491149 """Create an array.
11501150
1151+ .. deprecated:: 3.0.0
1152+ The h5py compatibility methods will be removed in 3.1.0. Use `AsyncGroup.create_array` instead.
1153+
11511154 Arrays are known as "datasets" in HDF5 terminology. For compatibility
11521155 with h5py, Zarr groups also implement the :func:`zarr.AsyncGroup.require_dataset` method.
11531156
@@ -1161,9 +1164,6 @@ async def create_dataset(
11611164 Returns
11621165 -------
11631166 a : AsyncArray
1164-
1165- .. deprecated:: 3.0.0
1166- The h5py compatibility methods will be removed in 3.1.0. Use `AsyncGroup.create_array` instead.
11671167 """
11681168 return await self .create_array (name , shape = shape , ** kwargs )
11691169
@@ -1179,6 +1179,9 @@ async def require_dataset(
11791179 ) -> AsyncArray [ArrayV2Metadata ] | AsyncArray [ArrayV3Metadata ]:
11801180 """Obtain an array, creating if it doesn't exist.
11811181
1182+ .. deprecated:: 3.0.0
1183+ The h5py compatibility methods will be removed in 3.1.0. Use `AsyncGroup.require_dataset` instead.
1184+
11821185 Arrays are known as "datasets" in HDF5 terminology. For compatibility
11831186 with h5py, Zarr groups also implement the :func:`zarr.AsyncGroup.create_dataset` method.
11841187
@@ -1199,9 +1202,6 @@ async def require_dataset(
11991202 Returns
12001203 -------
12011204 a : AsyncArray
1202-
1203- .. deprecated:: 3.0.0
1204- The h5py compatibility methods will be removed in 3.1.0. Use `AsyncGroup.require_dataset` instead.
12051205 """
12061206 return await self .require_array (name , shape = shape , dtype = dtype , exact = exact , ** kwargs )
12071207
@@ -2393,6 +2393,10 @@ def create_array(
23932393 def create_dataset (self , name : str , ** kwargs : Any ) -> Array :
23942394 """Create an array.
23952395
2396+ .. deprecated:: 3.0.0
2397+ The h5py compatibility methods will be removed in 3.1.0. Use `Group.create_array` instead.
2398+
2399+
23962400 Arrays are known as "datasets" in HDF5 terminology. For compatibility
23972401 with h5py, Zarr groups also implement the :func:`zarr.Group.require_dataset` method.
23982402
@@ -2406,16 +2410,16 @@ def create_dataset(self, name: str, **kwargs: Any) -> Array:
24062410 Returns
24072411 -------
24082412 a : Array
2409-
2410- .. deprecated:: 3.0.0
2411- The h5py compatibility methods will be removed in 3.1.0. Use `Group.create_array` instead.
24122413 """
24132414 return Array (self ._sync (self ._async_group .create_dataset (name , ** kwargs )))
24142415
24152416 @deprecated ("Use Group.require_array instead." )
24162417 def require_dataset (self , name : str , * , shape : ShapeLike , ** kwargs : Any ) -> Array :
24172418 """Obtain an array, creating if it doesn't exist.
24182419
2420+ .. deprecated:: 3.0.0
2421+ The h5py compatibility methods will be removed in 3.1.0. Use `Group.require_array` instead.
2422+
24192423 Arrays are known as "datasets" in HDF5 terminology. For compatibility
24202424 with h5py, Zarr groups also implement the :func:`zarr.Group.create_dataset` method.
24212425
@@ -2431,9 +2435,6 @@ def require_dataset(self, name: str, *, shape: ShapeLike, **kwargs: Any) -> Arra
24312435 Returns
24322436 -------
24332437 a : Array
2434-
2435- .. deprecated:: 3.0.0
2436- The h5py compatibility methods will be removed in 3.1.0. Use `Group.require_array` instead.
24372438 """
24382439 return Array (self ._sync (self ._async_group .require_array (name , shape = shape , ** kwargs )))
24392440
@@ -2660,6 +2661,9 @@ def array(
26602661 ) -> Array :
26612662 """Create an array within this group.
26622663
2664+ .. deprecated:: 3.0.0
2665+ Use `Group.create_array` instead.
2666+
26632667 This method lightly wraps :func:`zarr.core.array.create_array`.
26642668
26652669 Parameters
0 commit comments