fix: correct grammar 'same type to' → 'same type as' in error messages by Ricardo-M-L · Pull Request #13388 · huggingface/diffusers · GitHub
Skip to content

fix: correct grammar 'same type to' → 'same type as' in error messages - #13388

Closed
Ricardo-M-L wants to merge 1 commit into
huggingface:mainfrom
Ricardo-M-L:fix/grammar-same-type-as-in-error-messages
Closed

Ricardo-M-L wants to merge 1 commit into
huggingface:mainfrom
Ricardo-M-L:fix/grammar-same-type-as-in-error-messages

Conversation

@Ricardo-M-L

Copy link
Copy Markdown
Contributor

160 occurrences across 158 pipeline files use the incorrect phrase "should be the same type to" instead of "should be the same type as" in the negative_prompt type check error message.

Example (before):

f"`negative_prompt` should be the same type to `prompt`, but got {type(negative_prompt)} != {type(prompt)}."

After:

f"`negative_prompt` should be the same type as `prompt`, but got {type(negative_prompt)} != {type(prompt)}."

2 files in the codebase already used the correct "same type as" form.

160 occurrences across 158 pipeline files used the incorrect phrase
"should be the same type to" instead of "should be the same type as".
2 files already had the correct form.
@Ricardo-M-L

Copy link
Copy Markdown
Contributor Author

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.

1 participant