Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docstring to token_weights() and related functions in sd1_clip #4640

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

alexdcramer
Copy link

Here's my attempt at adding some documentation for the behavior seen in #4610. Hopefully the explanation I gave in the docstring makes sense :)

I got a little carried away and also added a docstring for escape_important() and unescape_important(); documenting those two functions isn't all that helpful to explaining how nesting works in token_weights(), but I'm figuring that there's no harm in adding a little extra documentation.

@ltdrdata
Copy link
Collaborator

ltdrdata commented Aug 28, 2024

Oh... there are indentation issues.

@alexdcramer
Copy link
Author

Oh... there are indentation issues.

Looks like I forgot to set my editor to use spaces instead of tabs, should be fixed now :)

@mcmonkey4eva mcmonkey4eva added User Support A user needs help with something, probably not a bug. documentation Improvements or additions to documentation and removed User Support A user needs help with something, probably not a bug. labels Sep 12, 2024
@mcmonkey4eva mcmonkey4eva added the Good PR This PR looks good to go, it needs comfy's final review. label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation Good PR This PR looks good to go, it needs comfy's final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants