Skip to content

Commit fd04d5a

Browse files
authored
Fix typo in error message (#5027)
1 parent 6a91e94 commit fd04d5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/datasets/features/features.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ def get_nested_type(schema: FeatureType) -> pa.DataType:
11361136
) # however don't sort on struct types since the order matters
11371137
elif isinstance(schema, (list, tuple)):
11381138
if len(schema) != 1:
1139-
raise ValueError("We defining list feature, you should just provide one example of the inner type")
1139+
raise ValueError("When defining list feature, you should just provide one example of the inner type")
11401140
value_type = get_nested_type(schema[0])
11411141
return pa.list_(value_type)
11421142
elif isinstance(schema, Sequence):

0 commit comments

Comments
 (0)