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

Fix lint after ruff update #2680

Merged
merged 2 commits into from
Nov 25, 2024
Merged

Fix lint after ruff update #2680

merged 2 commits into from
Nov 25, 2024

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Nov 25, 2024

No description provided.

@Wauplin Wauplin marked this pull request as ready for review November 25, 2024 16:49
@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.

@Wauplin Wauplin merged commit 7dc41b1 into main Nov 25, 2024
17 checks passed
@Wauplin Wauplin deleted the upgrade-ruff branch November 25, 2024 17:08
Comment on lines +60 to +62
with patch("huggingface_hub._login.get_stored_tokens", return_value=stored_tokens):
with patch("huggingface_hub.utils._auth.get_stored_tokens", return_value=stored_tokens):
yield stored_tokens
Copy link
Contributor Author

@Wauplin Wauplin Nov 25, 2024

Choose a reason for hiding this comment

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

Less elegant that the previous version but ruff was formatting it in a way that was not supported in Python3.8 . I went for the easiest solution

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