Skip to content

Conversation

@hanouticelina
Copy link
Contributor

this should fix the linting issue generated from #3506.

the issue comes from the huggingface.js generate script that adds an empty line at the top of each file it creates. most task files also have a from typing ... import right after that blank line and duuring formatting, this import makes the blank line disappear. the zero_shot_object_detection task doesn't need that typing import, it only has from .base .... with no typing import there to "hide" the blank line, so the empty line stays visible and the quality check fails.

the simplest fix (i think) is to strip any empty lines at the start of each generated file.

@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.

Copy link
Contributor

@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.

PR description seems reasonable so let's try it out ^^

@hanouticelina hanouticelina merged commit 981c368 into main Nov 3, 2025
20 of 22 checks passed
@hanouticelina hanouticelina deleted the fix-inference-types-generation branch November 3, 2025 11:50
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.

4 participants