Skip to content

Commit

Permalink
fix: unbreak function signature of from_array
Browse files Browse the repository at this point in the history
  • Loading branch information
d-v-b committed Mar 19, 2024
1 parent 5b1250f commit c8521c4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/pydantic_zarr/v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,9 @@ def from_array(
attributes: Literal["auto"] | TAttr = "auto",
fill_value: Literal["auto"] | int | float | None = "auto",
order: Literal["auto", "C", "F"] = "auto",
filters: list[CodecDict] | None = "auto",
dimension_separator: Annotated[
Literal["/", "."], BeforeValidator(parse_dimension_separator)
] = "auto",
compressor: CodecDict | None = "auto",
filters: Literal["auto"] | list[CodecDict] | None = "auto",
dimension_separator: Literal["auto", "/", "."] = "auto",
compressor: Literal["auto"] | CodecDict | None = "auto",
):
"""
Create an `ArraySpec` from an array-like object. This is a convenience method for when Zarr array will be modelled from an existing array.
Expand All @@ -202,7 +200,7 @@ def from_array(
array : an array-like object.
Must have `shape` and `dtype` attributes.
The `shape` and `dtype` of this object will be used to construct an `ArraySpec`.
attributes: "auto" | TAttr, default = "auto""
attributes: "auto" | TAttr, default = "auto"
User-defined metadata associated with this array. Should be JSON-serializable. The default is "auto", which means that `array.attributes` will be used,
with a fallback value of the empty dict `{}`.
chunks: "auto" | tuple[int, ...], default = "auto"
Expand Down

0 comments on commit c8521c4

Please sign in to comment.