@@ -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 data = kwargs .pop ("data" , None )
11691169 # create_dataset in zarr 2.x requires shape but not dtype if data is
@@ -1188,6 +1188,9 @@ async def require_dataset(
11881188 ) -> AsyncArray [ArrayV2Metadata ] | AsyncArray [ArrayV3Metadata ]:
11891189 """Obtain an array, creating if it doesn't exist.
11901190
1191+ .. deprecated:: 3.0.0
1192+ The h5py compatibility methods will be removed in 3.1.0. Use `AsyncGroup.require_dataset` instead.
1193+
11911194 Arrays are known as "datasets" in HDF5 terminology. For compatibility
11921195 with h5py, Zarr groups also implement the :func:`zarr.AsyncGroup.create_dataset` method.
11931196
@@ -1208,9 +1211,6 @@ async def require_dataset(
12081211 Returns
12091212 -------
12101213 a : AsyncArray
1211-
1212- .. deprecated:: 3.0.0
1213- The h5py compatibility methods will be removed in 3.1.0. Use `AsyncGroup.require_dataset` instead.
12141214 """
12151215 return await self .require_array (name , shape = shape , dtype = dtype , exact = exact , ** kwargs )
12161216
@@ -2402,6 +2402,10 @@ def create_array(
24022402 def create_dataset (self , name : str , ** kwargs : Any ) -> Array :
24032403 """Create an array.
24042404
2405+ .. deprecated:: 3.0.0
2406+ The h5py compatibility methods will be removed in 3.1.0. Use `Group.create_array` instead.
2407+
2408+
24052409 Arrays are known as "datasets" in HDF5 terminology. For compatibility
24062410 with h5py, Zarr groups also implement the :func:`zarr.Group.require_dataset` method.
24072411
@@ -2415,16 +2419,16 @@ def create_dataset(self, name: str, **kwargs: Any) -> Array:
24152419 Returns
24162420 -------
24172421 a : Array
2418-
2419- .. deprecated:: 3.0.0
2420- The h5py compatibility methods will be removed in 3.1.0. Use `Group.create_array` instead.
24212422 """
24222423 return Array (self ._sync (self ._async_group .create_dataset (name , ** kwargs )))
24232424
24242425 @deprecated ("Use Group.require_array instead." )
24252426 def require_dataset (self , name : str , * , shape : ShapeLike , ** kwargs : Any ) -> Array :
24262427 """Obtain an array, creating if it doesn't exist.
24272428
2429+ .. deprecated:: 3.0.0
2430+ The h5py compatibility methods will be removed in 3.1.0. Use `Group.require_array` instead.
2431+
24282432 Arrays are known as "datasets" in HDF5 terminology. For compatibility
24292433 with h5py, Zarr groups also implement the :func:`zarr.Group.create_dataset` method.
24302434
@@ -2440,9 +2444,6 @@ def require_dataset(self, name: str, *, shape: ShapeLike, **kwargs: Any) -> Arra
24402444 Returns
24412445 -------
24422446 a : Array
2443-
2444- .. deprecated:: 3.0.0
2445- The h5py compatibility methods will be removed in 3.1.0. Use `Group.require_array` instead.
24462447 """
24472448 return Array (self ._sync (self ._async_group .require_array (name , shape = shape , ** kwargs )))
24482449
@@ -2669,6 +2670,9 @@ def array(
26692670 ) -> Array :
26702671 """Create an array within this group.
26712672
2673+ .. deprecated:: 3.0.0
2674+ Use `Group.create_array` instead.
2675+
26722676 This method lightly wraps :func:`zarr.core.array.create_array`.
26732677
26742678 Parameters
0 commit comments