@@ -774,9 +774,9 @@ async def open_group(
774
774
775
775
776
776
async def create (
777
- shape : ChunkCoords ,
777
+ shape : ChunkCoords | int ,
778
778
* , # Note: this is a change from v2
779
- chunks : ChunkCoords | None = None , # TODO: v2 allowed chunks=True
779
+ chunks : ChunkCoords | int | None = None , # TODO: v2 allowed chunks=True
780
780
dtype : npt .DTypeLike | None = None ,
781
781
compressor : dict [str , JSON ] | None = None , # TODO: default and type change
782
782
fill_value : Any | None = 0 , # TODO: need type
@@ -798,7 +798,7 @@ async def create(
798
798
meta_array : Any | None = None , # TODO: need type
799
799
attributes : dict [str , JSON ] | None = None ,
800
800
# v3 only
801
- chunk_shape : ChunkCoords | None = None ,
801
+ chunk_shape : ChunkCoords | int | None = None ,
802
802
chunk_key_encoding : (
803
803
ChunkKeyEncoding
804
804
| tuple [Literal ["default" ], Literal ["." , "/" ]]
@@ -1104,6 +1104,8 @@ async def open_array(
1104
1104
----------
1105
1105
store : Store or str
1106
1106
Store or path to directory in file system or name of zip file.
1107
+ zarr_version : {2, 3, None}, optional
1108
+ The zarr format to use when saving. Deprecated in favor of zarr_format.
1107
1109
zarr_format : {2, 3, None}, optional
1108
1110
The zarr format to use when saving.
1109
1111
path : str, optional
0 commit comments