10000 Improve deprecation of zarr.creation and zarr.convenience (#2609) · tomwhite/zarr-python@7907852 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7907852

Browse files
authored
Improve deprecation of zarr.creation and zarr.convenience (zarr-developers#2609)
1 parent f407a41 commit 7907852

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

src/zarr/convenience.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
"""
2+
Convenience helpers.
3+
4+
.. warning::
5+
6+
This sub-module is deprecated. All functions here are defined
7+
in the top level zarr namespace instead.
8+
"""
9+
110
import warnings
211

312
from zarr.api.synchronous import (
@@ -29,7 +38,8 @@
2938
]
3039

3140
warnings.warn(
32-
"zarr.convenience is deprecated, use zarr.api.synchronous",
41+
"zarr.convenience is deprecated. "
42+
"Import these functions from the top level zarr. namespace instead.",
3343
DeprecationWarning,
3444
stacklevel=2,
3545
)

src/zarr/creation.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
"""
2+
Helpers for creating arrays.
3+
4+
.. warning::
5+
6+
This sub-module is deprecated. All functions here are defined
7+
in the top level zarr namespace instead.
8+
"""
9+
110
import warnings
211

312
from zarr.api.synchronous import (
@@ -31,7 +40,8 @@
3140
]
3241

3342
warnings.warn(
34-
"zarr.creation is deprecated, use zarr.api.synchronous",
43+
"zarr.creation is deprecated. "
44+
"Import these functions from the top level zarr. namespace instead.",
3545
DeprecationWarning,
3646
stacklevel=2,
3747
)

0 commit comments

Comments
 (0)
0