Skip to content

Commit 5f44eaf

Browse files
committed
chore: revert needless change to inheritance, because it's out of scope
1 parent 2d6b0f7 commit 5f44eaf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pydantic_zarr/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ class NodeSpecV2(GenericModel, Generic[TAttr]):
3434
"""
3535

3636
zarr_version: ZarrVersion = 2
37-
attrs: TAttr
3837

3938
class Config:
4039
extra = "forbid"
@@ -47,6 +46,7 @@ class ArraySpec(NodeSpecV2, Generic[TAttr]):
4746
the type of attrs.
4847
"""
4948

49+
attrs: TAttr
5050
shape: tuple[int, ...]
5151
chunks: tuple[int, ...]
5252
dtype: str
@@ -182,6 +182,7 @@ def to_zarr(
182182

183183

184184
class GroupSpec(NodeSpecV2, Generic[TAttr, TItem]):
185+
attrs: TAttr
185186
members: dict[str, TItem] = {}
186187

187188
@classmethod

0 commit comments

Comments
 (0)