Skip to content

Commit 3fe4264

Browse files
authored
Merge pull request #91 from dstansby/to-zarr-typing
Fix GroupSpec.from_zarr typing
2 parents ab4e8f1 + be9ef46 commit 3fe4264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pydantic_zarr/v3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ def to_flat(self, root_path: str = "") -> dict[str, AnyArraySpec | AnyGroupSpec]
593593
return to_flat(self, root_path=root_path)
594594

595595
@classmethod
596-
def from_zarr(cls, group: zarr.Group, *, depth: int = -1) -> GroupSpec[TAttr, TItem]:
596+
def from_zarr(cls, group: zarr.Group, *, depth: int = -1) -> Self:
597597
"""
598598
Create a GroupSpec from a zarr group. Subgroups and arrays contained in the zarr
599599
group will be converted to instances of GroupSpec and ArraySpec, respectively,

0 commit comments

Comments
 (0)