We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a91e94 commit fd04d5aCopy full SHA for fd04d5a
src/datasets/features/features.py
@@ -1136,7 +1136,7 @@ def get_nested_type(schema: FeatureType) -> pa.DataType:
1136
) # however don't sort on struct types since the order matters
1137
elif isinstance(schema, (list, tuple)):
1138
if len(schema) != 1:
1139
- 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")
1140
value_type = get_nested_type(schema[0])
1141
return pa.list_(value_type)
1142
elif isinstance(schema, Sequence):
0 commit comments