Skip to content

[Bot] Update inference types#3663

Open
HuggingFaceInfra wants to merge 1 commit intomainfrom
update-inference-types-automated-pr
Open

[Bot] Update inference types#3663
HuggingFaceInfra wants to merge 1 commit intomainfrom
update-inference-types-automated-pr

Conversation

@HuggingFaceInfra
Copy link
Copy Markdown
Contributor

@HuggingFaceInfra HuggingFaceInfra commented Jan 6, 2026

This PR updates the inference types. It has been generated by running:

# Generate Python code
pnpm run inference-codegen  # from @huggingface/tasks-gen

# Copy to this repository
cp -r ./huggingface.js/packages/tasks/.python_generated/* ./huggingface_hub/src/huggingface_hub/inference/_generated/types

# Clean things
make inference_update
make style

This PR was automatically created by the Update Inference Types workflow.

Make sure the changes are correct before merging.


Note

Low Risk
Low risk auto-generated type-hint/docstring updates with no behavioral logic changes; main risk is minor typing/compatibility fallout in downstream users relying on exact annotations.

Overview
Auto-generated inference type refresh. Updates InferenceClient/AsyncInferenceClient method signatures and the _generated/types dataclasses to consistently use Optional[...]/Union[...] instead of T | None/inline unions, alongside required typing imports.

Also tweaks task docstrings (fixes a few malformed/duplicated param docs and clarifies wording for some parameters like seed/num_inference_steps).

Reviewed by Cursor Bugbot for commit b058a04. Bugbot is set up for automated code reviews on this repo. Configure here.

@bot-ci-comment
Copy link
Copy Markdown

bot-ci-comment bot commented Jan 6, 2026

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.

@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch 4 times, most recently from d2916f8 to 84b3cbd Compare January 10, 2026 03:28
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch 4 times, most recently from def8fd6 to c2dedeb Compare January 21, 2026 03:30
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch 4 times, most recently from fc2a10c to 033bbed Compare January 28, 2026 03:30
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch 5 times, most recently from ccd97fa to c2cebc7 Compare February 4, 2026 03:45
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch 3 times, most recently from 181d684 to 03046a2 Compare February 10, 2026 03:56
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch 6 times, most recently from 3bdc9e6 to 7c763ba Compare February 19, 2026 03:47
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch 6 times, most recently from 06df33d to 7dd66ec Compare March 4, 2026 03:43
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch 5 times, most recently from 4a1ccf0 to 6a8745a Compare March 11, 2026 03:43
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch 5 times, most recently from c8d82eb to bc69446 Compare March 18, 2026 03:51
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch 4 times, most recently from 820d273 to 0b99280 Compare March 25, 2026 03:47
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch 6 times, most recently from 8f92808 to 40f8528 Compare April 2, 2026 03:53
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch 2 times, most recently from ecd3ac0 to 1c3351b Compare April 4, 2026 03:46
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch from 1c3351b to b058a04 Compare April 7, 2026 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants