Skip to content

Commit

Permalink
api: hide zarr.core from api docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jhamman committed Jan 7, 2025
1 parent 12f6012 commit 7215121
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def skip_submodules(
) -> bool:
# Skip documenting zarr.codecs submodules
# codecs are documented in the main zarr.codecs namespace
if what == "module" and name.startswith("zarr.codecs."):
if what == "module" and name.startswith("zarr.codecs.") or name.startswith("zarr.core"):
skip = True
return skip

Expand Down
5 changes: 5 additions & 0 deletions src/zarr/core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
The ``zarr.core`` module is considered private API and should not be imported
directly by 3rd-party code.
"""

from __future__ import annotations

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

0 comments on commit 7215121

Please sign in to comment.