Skip to content

[HfApi] Add mainSize to ExpandDatasetProperty_T#4136

Merged
Wauplin merged 2 commits intomainfrom
cursor/add-mainsize-expand-dataset-3b11
Apr 24, 2026
Merged

[HfApi] Add mainSize to ExpandDatasetProperty_T#4136
Wauplin merged 2 commits intomainfrom
cursor/add-mainsize-expand-dataset-3b11

Conversation

@Wauplin
Copy link
Copy Markdown
Contributor

@Wauplin Wauplin commented Apr 24, 2026

follow up on server-side update: https://github.com/huggingface-internal/moon-landing/pull/17910

Summary

Adds the new mainSize property (added server-side) to the ExpandDatasetProperty_T literal type used by list_datasets and dataset_info.

Changes:

  • Added "mainSize" to the ExpandDatasetProperty_T Literal type (in alphabetical order)
  • Added main_size attribute to DatasetInfo class (type annotation, docstring, and __init__ pop)
  • Updated the docstring for list_datasets to list "mainSize" in the possible expand values
  • Updated the docstring for dataset_info to list "mainSize" in the possible expand values
  • CLI reference auto-regenerated to reflect the new value

Slack Thread

Open in Web Open in Cursor 

@bot-ci-comment
Copy link
Copy Markdown

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.

Copy link
Copy Markdown
Contributor Author

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✔️

Thanks Cursor, you couldn't have done better :')

@Wauplin Wauplin marked this pull request as ready for review April 24, 2026 08:54
@Wauplin Wauplin merged commit 871f54e into main Apr 24, 2026
19 of 21 checks passed
@Wauplin Wauplin deleted the cursor/add-mainsize-expand-dataset-3b11 branch April 24, 2026 08:59
@huggingface-hub-bot
Copy link
Copy Markdown
Contributor

This PR has been shipped as part of the v1.12.0 release.

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