Skip to content

Commit 1df675a

Browse files
committed
Fix syncrhonous create() signature
1 parent 498be2e commit 1df675a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/zarr/api/synchronous.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
if TYPE_CHECKING:
1616
from collections.abc import Iterable
1717

18+
import numcodecs.abc
1819
import numpy as np
1920
import numpy.typing as npt
2021

@@ -613,7 +614,7 @@ def create(
613614
overwrite: bool = False,
614615
path: PathLike | None = None,
615616
chunk_store: StoreLike | None = None,
616-
filters: list[dict[str, JSON]] | None = None, # TODO: type has changed
617+
filters: Iterable[dict[str, JSON] | numcodecs.abc.Codec] | None = None,
617618
cache_metadata: bool | None = None,
618619
cache_attrs: bool | None = None,
619620
read_only: bool | None = None,

0 commit comments

Comments
 (0)