Skip to content

Add correct typing to custom images_kwargs in ProcessorsKwargs#44270

Open
yonigozlan wants to merge 1 commit intohuggingface:mainfrom
yonigozlan:add-correct-image-proc-typing-to-processors
Open

Add correct typing to custom images_kwargs in ProcessorsKwargs#44270
yonigozlan wants to merge 1 commit intohuggingface:mainfrom
yonigozlan:add-correct-image-proc-typing-to-processors

Conversation

@yonigozlan
Copy link
Copy Markdown
Member

What does this PR do?

A lot of ProcessorsKwargs have incorrect/unspecified type hints in their ProcessorsKwargs TypedDict for their images_kwargs attribute.
Functionnaly, this did not cause issues as "_merge_kwargs" automatically picks up the correct CustomImagesKwargs to define the valid_processor_kwargs for image processors. However it is incoherent and confusing for users looking at the code and at the docs.

@yonigozlan yonigozlan requested a review from vasqu February 25, 2026 00:11
@github-actions
Copy link
Copy Markdown
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: align, aya_vision, bridgetower, cohere2_vision, colqwen2, deepseek_vl, deepseek_vl_hybrid, ernie4_5_vl_moe, fuyu, gemma3, glm46v, glm4v, grounding_dino, idefics, idefics2, idefics3

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

@yonigozlan yonigozlan removed the request for review from vasqu February 25, 2026 00:32
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