Skip to content

Commit d322cad

Browse files
committed
ensure that all deprecations are ZarrDeprecations
1 parent 64e1405 commit d322cad

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/zarr/core/array.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ async def create(
441441
) -> AsyncArray[ArrayV3Metadata] | AsyncArray[ArrayV2Metadata]: ...
442442

443443
@classmethod
444-
@deprecated("Use zarr.api.asynchronous.create_array instead.")
444+
@deprecated("Use zarr.api.asynchronous.create_array instead.", category=ZarrDeprecationWarning)
445445
async def create(
446446
cls,
447447
store: StoreLike,
@@ -1855,7 +1855,7 @@ class Array:
18551855
_async_array: AsyncArray[ArrayV3Metadata] | AsyncArray[ArrayV2Metadata]
18561856

18571857
@classmethod
1858-
@deprecated("Use zarr.create_array instead.")
1858+
@deprecated("Use zarr.create_array instead.", category=ZarrDeprecationWarning)
18591859
def create(
18601860
cls,
18611861
store: StoreLike,

src/zarr/core/group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2828,7 +2828,7 @@ def move(self, source: str, dest: str) -> None:
28282828
"""
28292829
return self._sync(self._async_group.move(source, dest))
28302830

2831-
@deprecated("Use Group.create_array instead.")
2831+
@deprecated("Use Group.create_array instead.", category=ZarrDeprecationWarning)
28322832
def array(
28332833
self,
28342834
name: str,

0 commit comments

Comments
 (0)