Skip to content

Commit

Permalink
Merge branch 'main' into dep/packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
jhamman authored Dec 18, 2024
2 parents 3d74c2b + f035d45 commit 9acec94
Show file tree
Hide file tree
Showing 10 changed files with 737 additions and 127 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"spec/v1": 'https://zarr-specs.readthedocs.io/en/latest/v1/v1.0.html',
"spec/v2": "https://zarr-specs.readthedocs.io/en/latest/v2/v2.0.html",
"spec/v3": "https://zarr-specs.readthedocs.io/en/latest/v3/core/v3.0.html",
"license": "https://github.com/zarr-developers/zarr-python/blob/main/LICENSE.txt"
}

# The language for content autogenerated by Sphinx. Refer to documentation
Expand Down
1 change: 0 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Zarr-Python
guide/index
api/index
release
license
contributing
roadmap

Expand Down
4 changes: 0 additions & 4 deletions docs/license.rst

This file was deleted.

8 changes: 5 additions & 3 deletions src/zarr/api/asynchronous.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,9 +774,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 @@ -798,7 +798,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: ChunkCoords | int | None = None,
chunk_key_encoding: (
ChunkKeyEncoding
| tuple[Literal["default"], Literal[".", "/"]]
Expand Down Expand Up @@ -1104,6 +1104,8 @@ async def open_array(
----------
store : Store or str
Store or path to directory in file system or name of zip file.
zarr_version : {2, 3, None}, optional
The zarr format to use when saving. Deprecated in favor of zarr_format.
zarr_format : {2, 3, None}, optional
The zarr format to use when saving.
path : str, optional
Expand Down
Loading

0 comments on commit 9acec94

Please sign in to comment.