From 98aba17f899eed179525b4c08247fc7f7a736ad5 Mon Sep 17 00:00:00 2001 From: Sylvain Lesage Date: Mon, 26 Sep 2022 16:10:06 +0200 Subject: [PATCH] fix typo --- 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 f9d5eb29509..50a115945e5 100644 --- a/src/datasets/features/features.py +++ b/src/datasets/features/features.py @@ -1136,7 +1136,7 @@ def get_nested_type(schema: FeatureType) -> pa.DataType: ) # however don't sort on struct types since the order matters elif isinstance(schema, (list, tuple)): if len(schema) != 1: - raise ValueError("We defining list feature, you should just provide one example of the inner type") + raise ValueError("When defining list feature, you should just provide one example of the inner type") value_type = get_nested_type(schema[0]) return pa.list_(value_type) elif isinstance(schema, Sequence):