Skip to content

Commit 7215121

Browse files
committed
api: hide zarr.core from api docs
1 parent 12f6012 commit 7215121

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def skip_submodules(
7171
) -> bool:
7272
# Skip documenting zarr.codecs submodules
7373
# codecs are documented in the main zarr.codecs namespace
74-
if what == "module" and name.startswith("zarr.codecs."):
74+
if what == "module" and name.startswith("zarr.codecs.") or name.startswith("zarr.core"):
7575
skip = True
7676
return skip
7777

src/zarr/core/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
"""
2+
The ``zarr.core`` module is considered private API and should not be imported
3+
directly by 3rd-party code.
4+
"""
5+
16
from __future__ import annotations
27

38
from zarr.core.buffer import Buffer, NDBuffer # noqa: F401

0 commit comments

Comments
 (0)