Skip to content

Conversation

patrickvonplaten
Copy link
Contributor

@patrickvonplaten patrickvonplaten commented Sep 11, 2023

What does this PR do?

Currently make style is broken. We need to fix this by adding if TYPE_CHECKING to all pipeline init classes (see: https://github.com/huggingface/diffusers/pull/4829/files#r1321159892)

@DN6 can you do a follow-up PR here? Given the amount of file, I would try to write a script that does that automatically for you.

As a way of testing the PR we should make sure that make style doesn't error out.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Sep 11, 2023

The documentation is not available anymore as the PR was closed or merged.

@patrickvonplaten
Copy link
Contributor Author

@DN6 feel free to take over this PR

@DN6
Copy link
Collaborator

DN6 commented Sep 11, 2023

@patrickvonplaten Ready for review.

@patrickvonplaten
Copy link
Contributor Author

Nice! Merging to avoid merge conflicts

@patrickvonplaten patrickvonplaten merged commit 18b7264 into main Sep 12, 2023
@patrickvonplaten patrickvonplaten deleted the correct_custom_init_sort branch September 12, 2023 09:05
dg845 added a commit to dg845/diffusers that referenced this pull request Sep 18, 2023
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
* [Utils] Correct custom init sort

* [Utils] Correct custom init sort

* [Utils] Correct custom init sort

* add type checking

* fix custom init sort

* fix test

* fix tests

---------

Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com>
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
* [Utils] Correct custom init sort

* [Utils] Correct custom init sort

* [Utils] Correct custom init sort

* add type checking

* fix custom init sort

* fix test

* fix tests

---------

Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com>
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