Skip to content
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

Remove deprecated code + adapt tests #1450

Merged
merged 3 commits into from
May 15, 2023
Merged

Remove deprecated code + adapt tests #1450

merged 3 commits into from
May 15, 2023

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Apr 26, 2023

Following 0.14 release.

Breaking changes:

  • list_models, list_datasets and list_spaces return an iterable instead of a list (lazy-loading of paginated results)
  • cannot use cardData in list_datasets. Should use full instead.
    Both changes should have been removed in 0.14 already but I forgot 😇. Since they were deprecated I hope the change will not brake too much warnings. I'll still advertise internally, just in case.

(I also modified some tests to stop listing all models/datasets/spaces from the Hub just to check it returns more than 100 results. This should save 2-3min on the overall CI 🤯)

@Wauplin Wauplin requested a review from LysandreJik April 26, 2023 10:05
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Apr 26, 2023

The documentation is not available anymore as the PR was closed or merged.

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

Great, LGTM! Very nice to finally have the generator returned by the list_* APIs.

@Wauplin
Copy link
Contributor Author

Wauplin commented May 15, 2023

Thanks for the review!

@Wauplin Wauplin merged commit 10b1cb2 into main May 15, 2023
@Wauplin Wauplin deleted the prepare-for-0.15 branch May 15, 2023 16:36
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.

3 participants