Skip to content

Commit 12a0d65

Browse files
rabernatjhamman
andauthored
Apply suggestions from code review
Co-authored-by: Joe Hamman <[email protected]>
1 parent 2edf3b8 commit 12a0d65

File tree

1 file changed

+1
-3
lines changed
  • src/zarr/core/metadata

1 file changed

+1
-3
lines changed

src/zarr/core/metadata/v3.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,10 @@ def parse_fill_value(
426426
return np.bytes_(fill_value)
427427

428428
# the rest are numeric types
429-
np_dtype = data_type.to_numpy()
430-
np_dtype = cast(np.dtype[np.generic], np_dtype)
429+
np_dtype = cast(np.dtype[np.generic], data_type.to_numpy())
431430

432431
if isinstance(fill_value, Sequence) and not isinstance(fill_value, str):
433432
if data_type in (DataType.complex64, DataType.complex128):
434-
# dtype = cast(np.dtypes.Complex64DType | np.dtypes.Complex128DType, np_dtype)
435433
if len(fill_value) == 2:
436434
# complex datatypes serialize to JSON arrays with two elements
437435
return np_dtype.type(complex(*fill_value))

0 commit comments

Comments
 (0)