Fix string formating

This commit is contained in:
filipstrand 2025-01-19 19:49:57 +01:00
parent 21a98b1369
commit 398cf082c3
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ class ModelLookup:
@staticmethod
def from_alias(alias: str) -> ModelConfig:
warnings.warn(
"from_alias is deprecated and will be removed in a future release. " "Please use from_name instead.",
"from_alias is deprecated and will be removed in a future release. Please use from_name instead.",
DeprecationWarning,
stacklevel=2,
)

View File

@ -139,7 +139,7 @@ class Flux1(nn.Module):
@staticmethod
def from_alias(alias: str, quantize: int | None = None) -> "Flux1":
warnings.warn(
"from_alias is deprecated and will be removed in a future release. " "Please use from_name instead.",
"from_alias is deprecated and will be removed in a future release. Please use from_name instead.",
DeprecationWarning,
stacklevel=2,
)