Skip to content

Commit e71b0b1

Browse files
authored
fix sequence ci (#7644)
1 parent 28b5e24 commit e71b0b1

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
@@ -1182,7 +1182,7 @@ class Sequence:
11821182

11831183
def __new__(cls, feature=None, length=-1, **kwargs):
11841184
# useful to still get isinstance(Sequence(Value("int64")), Sequence)
1185-
if isinstance(feature, dict):
1185+
if cls is Sequence and isinstance(feature, dict):
11861186
out = {key: List(value, length=length, **kwargs) for key, value in feature.items()}
11871187
else:
11881188
out = super().__new__(List)

0 commit comments

Comments
 (0)