Skip to content

Commit 7e83580

Browse files
committed
add docstrings and complete function signatures to synchronous api, and tests for the above
1 parent 1a75957 commit 7e83580

File tree

5 files changed

+675
-71
lines changed

5 files changed

+675
-71
lines changed

src/zarr/api/asynchronous.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -765,9 +765,9 @@ async def open_group(
765765

766766

767767
async def create(
768-
shape: ChunkCoords,
768+
shape: ChunkCoords | int,
769769
*, # Note: this is a change from v2
770-
chunks: ChunkCoords | None = None, # TODO: v2 allowed chunks=True
770+
chunks: ChunkCoords | int | None = None, # TODO: v2 allowed chunks=True
771771
dtype: npt.DTypeLike | None = None,
772772
compressor: dict[str, JSON] | None = None, # TODO: default and type change
773773
fill_value: Any | None = 0, # TODO: need type
@@ -789,7 +789,7 @@ async def create(
789789
meta_array: Any | None = None, # TODO: need type
790790
attributes: dict[str, JSON] | None = None,
791791
# v3 only
792-
chunk_shape: ChunkCoords | None = None,
792+
chunk_shape: tuple[int, ...] | int | None = None,
793793
chunk_key_encoding: (
794794
ChunkKeyEncoding
795795
| tuple[Literal["default"], Literal[".", "/"]]

0 commit comments

Comments
 (0)