Skip to content

Commit df8f631

Browse files
committed
remove missing overload
1 parent 2696efa commit df8f631

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

src/zarr/core/array.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,33 @@ async def create(
305305
config: ArrayConfig | ArrayConfigParams | None = None,
306306
) -> AsyncArray[ArrayV3Metadata]: ...
307307

308+
@overload
309+
@classmethod
310+
async def create(
311+
cls,
312+
store: StoreLike,
313+
*,
314+
# v2 and v3
315+
shape: ShapeLike,
316+
dtype: npt.DTypeLike,
317+
zarr_format: Literal[3] = 3,
318+
fill_value: Any | None = None,
319+
attributes: dict[str, JSON] | None = None,
320+
# v3 only
321+
chunk_shape: ShapeLike | None = None,
322+
chunk_key_encoding: (
323+
ChunkKeyEncoding
324+
| tuple[Literal["default"], Literal[".", "/"]]
325+
| tuple[Literal["v2"], Literal[".", "/"]]
326+
| None
327+
) = None,
328+
codecs: Iterable[Codec | dict[str, JSON]] | None = None,
329+
dimension_names: Iterable[str] | None = None,
330+
# runtime
331+
overwrite: bool = False,
332+
data: npt.ArrayLike | None = None,
333+
config: ArrayConfig | ArrayConfigParams | None = None,
334+
) -> AsyncArray[ArrayV3Metadata]: ...
308335
@overload
309336
@classmethod
310337
async def create(

0 commit comments

Comments
 (0)