Skip to content

Commit 70a4876

Browse files
committed
docstrings
1 parent 39b5c07 commit 70a4876

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/zarr/core/array.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,11 +1185,12 @@ def basename(self) -> str:
11851185
@property
11861186
def cdata_shape(self) -> ChunkCoords:
11871187
"""
1188-
The shape of the chunk grid for this array.
1188+
The shape of the chunk grid for this array. This property exists for backwards compatibility.
1189+
See :func:`chunk_grid_shape` for the preferred method.
11891190
11901191
Returns
11911192
-------
1192-
Tuple[int]
1193+
tuple[int, ...]
11931194
The shape of the chunk grid for this array.
11941195
"""
11951196
return self.chunk_grid_shape
@@ -1201,7 +1202,7 @@ def chunk_grid_shape(self) -> ChunkCoords:
12011202
12021203
Returns
12031204
-------
1204-
Tuple[int]
1205+
tuple[int, ...]
12051206
The shape of the chunk grid for this array.
12061207
"""
12071208
return tuple(starmap(ceildiv, zip(self.shape, self.chunks, strict=True)))
@@ -1213,7 +1214,7 @@ def shard_grid_shape(self) -> ChunkCoords:
12131214
12141215
Returns
12151216
-------
1216-
Tuple[int]
1217+
tuple[int, ...]
12171218
The shape of the shard grid for this array.
12181219
"""
12191220
return tuple(starmap(ceildiv, zip(self.shape, self.shards, strict=True)))

0 commit comments

Comments
 (0)