From 533a9390fd3cfe4467c23c091eb8d489a0368e88 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Thu, 10 Apr 2025 10:29:54 +0200 Subject: [PATCH] Improve array and group docstringspc --- src/zarr/core/array.py | 4 +++- src/zarr/core/group.py | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/zarr/core/array.py b/src/zarr/core/array.py index 0e03cbcabb..44360469be 100644 --- a/src/zarr/core/array.py +++ b/src/zarr/core/array.py @@ -1707,7 +1707,9 @@ def _info( # TODO: Array can be a frozen data class again once property setters (e.g. shape) are removed @dataclass(frozen=False) class Array: - """Instantiate an array from an initialized store.""" + """ + A Zarr array. + """ _async_array: AsyncArray[ArrayV3Metadata] | AsyncArray[ArrayV2Metadata] diff --git a/src/zarr/core/group.py b/src/zarr/core/group.py index 5500bdd4a5..1fedba76a1 100644 --- a/src/zarr/core/group.py +++ b/src/zarr/core/group.py @@ -1744,6 +1744,10 @@ async def move(self, source: str, dest: str) -> None: @dataclass(frozen=True) class Group(SyncMixin): + """ + A Zarr group. + """ + _async_group: AsyncGroup @classmethod