@@ -774,15 +774,13 @@ def _create_metadata_v2(
774774 chunks: ChunkCoords,
775775 order: MemoryOrder,
776776 dimension_separator: Literal[".", "/"] | None = None,
777- fill_value: float | None = None,
777+ fill_value: Any | None = None,
778778 filters: Iterable[dict[str, JSON] | numcodecs.abc.Codec] | None = None,
779779 compressor: CompressorLikev2 = None,
780780 attributes: dict[str, JSON] | None = None,
781781 ) -> ArrayV2Metadata:
782782 if dimension_separator is None:
783783 dimension_separator = "."
784- if fill_value is None:
785- fill_value = dtype.default_scalar() # type: ignore[assignment]
786784 return ArrayV2Metadata(
787785 shape=shape,
788786 dtype=dtype,
@@ -806,7 +804,7 @@ async def _create_v2(
806804 order: MemoryOrder,
807805 config: ArrayConfig,
808806 dimension_separator: Literal[".", "/"] | None = None,
809- fill_value: float | None = None,
807+ fill_value: Any | None = None,
810808 filters: Iterable[dict[str, JSON] | numcodecs.abc.Codec] | None = None,
811809 compressor: CompressorLike = "auto",
812810 attributes: dict[str, JSON] | None = None,
0 commit comments