Skip to content

Commit

Permalink
add docstrings and complete function signatures to synchronous api, a…
Browse files Browse the repository at this point in the history
…nd tests for the above
  • Loading branch information
d-v-b committed Dec 10, 2024
1 parent 1a75957 commit 7e83580
Show file tree
Hide file tree
Showing 5 changed files with 675 additions and 71 deletions.
6 changes: 3 additions & 3 deletions src/zarr/api/asynchronous.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,9 +765,9 @@ async def open_group(


async def create(
shape: ChunkCoords,
shape: ChunkCoords | int,
*, # Note: this is a change from v2
chunks: ChunkCoords | None = None, # TODO: v2 allowed chunks=True
chunks: ChunkCoords | int | None = None, # TODO: v2 allowed chunks=True
dtype: npt.DTypeLike | None = None,
compressor: dict[str, JSON] | None = None, # TODO: default and type change
fill_value: Any | None = 0, # TODO: need type
Expand All @@ -789,7 +789,7 @@ async def create(
meta_array: Any | None = None, # TODO: need type
attributes: dict[str, JSON] | None = None,
# v3 only
chunk_shape: ChunkCoords | None = None,
chunk_shape: tuple[int, ...] | int | None = None,
chunk_key_encoding: (
ChunkKeyEncoding
| tuple[Literal["default"], Literal[".", "/"]]
Expand Down
Loading

0 comments on commit 7e83580

Please sign in to comment.