Skip to content

Replace Sequence by List #7634

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jun 25, 2025
Merged

Replace Sequence by List #7634

merged 10 commits into from
Jun 25, 2025

Conversation

lhoestq
Copy link
Member

@lhoestq lhoestq commented Jun 23, 2025

Sequence is just a utility that we need to keep for backward compatibility. And [ ] was used instead but doesn't allow passing the length of the list.

This PR removes most mentions of Sequence and usage of [ ] and defines a proper List type instead.

before: Sequence(Value("int64")) or [Value("int64")]
now: List(Value("int64"))

This PR conserves full backward compatibility. And it's a good occasion with the release of 4.0.0

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@lhoestq lhoestq merged commit 5b1d12d into main Jun 25, 2025
2 checks passed
@lhoestq lhoestq deleted the no-more-sequence branch June 25, 2025 13:59
@lhoestq lhoestq mentioned this pull request Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants