Skip to content

Commit ea228ca

Browse files
authored
Merge branch 'main' into default-compressor
2 parents 6fd3f25 + f035d45 commit ea228ca

File tree

8 files changed

+653
-76
lines changed

8 files changed

+653
-76
lines changed

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
"spec/v1": 'https://zarr-specs.readthedocs.io/en/latest/v1/v1.0.html',
8888
"spec/v2": "https://zarr-specs.readthedocs.io/en/latest/v2/v2.0.html",
8989
"spec/v3": "https://zarr-specs.readthedocs.io/en/latest/v3/core/v3.0.html",
90+
"license": "https://github.com/zarr-developers/zarr-python/blob/main/LICENSE.txt"
9091
}
9192

9293
# The language for content autogenerated by Sphinx. Refer to documentation

docs/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Zarr-Python
1313
guide/index
1414
api/index
1515
release
16-
license
1716
contributing
1817
roadmap
1918

docs/license.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/zarr/api/asynchronous.py

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

777777

778778
async def create(
779-
shape: ChunkCoords,
779+
shape: ChunkCoords | int,
780780
*, # Note: this is a change from v2
781-
chunks: ChunkCoords | None = None, # TODO: v2 allowed chunks=True
781+
chunks: ChunkCoords | int | None = None, # TODO: v2 allowed chunks=True
782782
dtype: npt.DTypeLike | None = None,
783783
compressor: dict[str, JSON] | None = None, # TODO: default and type change
784784
fill_value: Any | None = 0, # TODO: need type
@@ -800,7 +800,7 @@ async def create(
800800
meta_array: Any | None = None, # TODO: need type
801801
attributes: dict[str, JSON] | None = None,
802802
# v3 only
803-
chunk_shape: ChunkCoords | None = None,
803+
chunk_shape: ChunkCoords | int | None = None,
804804
chunk_key_encoding: (
805805
ChunkKeyEncoding
806806
| tuple[Literal["default"], Literal[".", "/"]]
@@ -1140,6 +1140,8 @@ async def open_array(
11401140
----------
11411141
store : Store or str
11421142
Store or path to directory in file system or name of zip file.
1143+
zarr_version : {2, 3, None}, optional
1144+
The zarr format to use when saving. Deprecated in favor of zarr_format.
11431145
zarr_format : {2, 3, None}, optional
11441146
The zarr format to use when saving.
11451147
path : str, optional

0 commit comments

Comments
 (0)