Skip to content

Commit eb5267f

Browse files
committed
Style quickfix
1 parent db5fa43 commit eb5267f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/diffusers/modeling_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,9 @@ def from_pretrained(cls, pretrained_model_name_or_path: Optional[Union[str, os.P
337337
)
338338

339339
if torch_dtype is not None and not isinstance(torch_dtype, torch.dtype):
340-
raise ValueError(f"{torch_dtype} needs to be of type `torch.dtype`, e.g. `torch.float16`, but is {type(torch_dtype)}.")
340+
raise ValueError(
341+
f"{torch_dtype} needs to be of type `torch.dtype`, e.g. `torch.float16`, but is {type(torch_dtype)}."
342+
)
341343
elif torch_dtype is not None:
342344
model = model.to(torch_dtype)
343345

0 commit comments

Comments
 (0)