From b690a53a0d452b4046be0614a442e55e79fbbb03 Mon Sep 17 00:00:00 2001 From: Farnaz Kohankhaki Date: Thu, 30 Jul 2026 18:53:52 -0700 Subject: [PATCH] Fix PandasArrayExtensionDtype._metadata to use a tuple --- src/datasets/features/features.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datasets/features/features.py b/src/datasets/features/features.py index d58676ce730..4008fec0886 100644 --- a/src/datasets/features/features.py +++ b/src/datasets/features/features.py @@ -847,7 +847,7 @@ def to_pylist(self, maps_as_pydicts: Optional[Literal["lossy", "strict"]] = None class PandasArrayExtensionDtype(PandasExtensionDtype): - _metadata = "value_type" + _metadata = ("value_type",) def __init__(self, value_type: Union["PandasArrayExtensionDtype", np.dtype]): self._value_type = value_type