Skip to content

Commit d43478a

Browse files
authored
Fix string casting
1 parent c5efbdf commit d43478a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pydantic_zarr/v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def from_array(
276276

277277
return cls(
278278
shape=shape_actual,
279-
dtype=dtype_actual.str,
279+
dtype=stringify_dtype(dtype_actual),
280280
chunks=chunks_actual,
281281
attributes=attributes_actual,
282282
fill_value=fill_value_actual,

0 commit comments

Comments
 (0)