Skip to content

Commit 33d0bd9

Browse files
committed
fix type annotation in overload
1 parent 68da9bf commit 33d0bd9

File tree

1 file changed

+2
-30
lines changed

1 file changed

+2
-30
lines changed

src/zarr/core/array.py

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ async def create(
389389
dimension_separator: Literal[".", "/"] | None = None,
390390
order: MemoryOrder | None = None,
391391
filters: list[dict[str, JSON]] | None = None,
392-
compressor: CompressorLike_V2 | Literal["auto"] = "auto",
392+
compressor: CompressorLike = "auto",
393393
# runtime
394394
overwrite: bool = False,
395395
data: npt.ArrayLike | None = None,
@@ -434,35 +434,7 @@ async def create(
434434
# v2 and v3
435435
shape: ShapeLike,
436436
dtype: ZDTypeLike,
437-
zarr_format: Literal[3] = 3,
438-
fill_value: Any | None = DEFAULT_FILL_VALUE,
439-
attributes: dict[str, JSON] | None = None,
440-
# v3 only
441-
chunk_shape: ShapeLike | None = None,
442-
chunk_key_encoding: (
443-
ChunkKeyEncoding
444-
| tuple[Literal["default"], Literal[".", "/"]]
445-
| tuple[Literal["v2"], Literal[".", "/"]]
446-
| None
447-
) = None,
448-
codecs: Iterable[Codec | dict[str, JSON]] | None = None,
449-
dimension_names: DimensionNames = None,
450-
# runtime
451-
overwrite: bool = False,
452-
data: npt.ArrayLike | None = None,
453-
config: ArrayConfigLike | None = None,
454-
) -> AsyncArray[ArrayV3Metadata]: ...
455-
456-
@overload
457-
@classmethod
458-
async def create(
459-
cls,
460-
store: StoreLike,
461-
*,
462-
# v2 and v3
463-
shape: ShapeLike,
464-
dtype: ZDTypeLike,
465-
zarr_format: ZarrFormat,
437+
zarr_format: ZarrFormat = 3,
466438
fill_value: Any | None = DEFAULT_FILL_VALUE,
467439
attributes: dict[str, JSON] | None = None,
468440
# v3 only

0 commit comments

Comments
 (0)