Skip to content

fix: correct invalid type annotation for image in Flux2Pipeline.__call__#13205

Open
teith wants to merge 1 commit intohuggingface:mainfrom
teith:fix/flux2-image-typehint
Open

fix: correct invalid type annotation for image in Flux2Pipeline.__call__#13205
teith wants to merge 1 commit intohuggingface:mainfrom
teith:fix/flux2-image-typehint

Conversation

@teith
Copy link

@teith teith commented Mar 3, 2026

What does this PR do?

Fixes invalid type annotation for the image parameter in Flux2Pipeline.__call__.

list[PIL.Image.Image, PIL.Image.Image] passes two type arguments to list, which only accepts one.

Fixed to PIL.Image.Image | list[PIL.Image.Image] | None to match the docstring.

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).

Who can review?

@yiyixuxu @asomoza

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