File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments