Skip to content

Commit 46e80ec

Browse files
committed
oMerge branch 'docs/dtype-docs' of github.com:d-v-b/zarr-python into docs/dtype-docs
2 parents 383acfc + 5b2a601 commit 46e80ec

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

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)