diff --git a/src/numpydantic/interface/zarr.py b/src/numpydantic/interface/zarr.py index 2e3d993..2a1e9c3 100644 --- a/src/numpydantic/interface/zarr.py +++ b/src/numpydantic/interface/zarr.py @@ -74,7 +74,8 @@ class ZarrJsonDict(JsonDict): if self.file: array = ZarrArrayPath(file=self.file, path=self.path) else: - array = zarr.array(self.value, dtype=self.dtype) + dtype = np.str_ if self.dtype == "str" else self.dtype + array = zarr.array(self.value, dtype=dtype) return array