Skip to content

Commit 15becdf

Browse files
authored
Merge branch 'main' into maybe-copy-store
2 parents 10e50e4 + 2911be8 commit 15becdf

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/zarr/core/dtype/npy/structured.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,10 @@ def to_json(
162162
[f_name, f_dtype.to_json(zarr_format=zarr_format)] # type: ignore[list-item]
163163
for f_name, f_dtype in self.fields
164164
]
165-
base_dict = {"name": self._zarr_v3_name}
166-
base_dict["configuration"] = {"fields": fields} # type: ignore[assignment]
165+
base_dict = {
166+
"name": self._zarr_v3_name,
167+
"configuration": {"fields": fields},
168+
}
167169
return cast("DTypeSpec_V3", base_dict)
168170
raise ValueError(f"zarr_format must be 2 or 3, got {zarr_format}") # pragma: no cover
169171

src/zarr/core/dtype/wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858

5959
@dataclass(frozen=True, kw_only=True, slots=True)
60-
class ZDType(Generic[TDType_co, TScalar_co], ABC):
60+
class ZDType(ABC, Generic[TDType_co, TScalar_co]):
6161
"""
6262
Abstract base class for wrapping native array data types, e.g. numpy dtypes
6363

0 commit comments

Comments
 (0)