Fix string formating
This commit is contained in:
parent
21a98b1369
commit
398cf082c3
@ -46,7 +46,7 @@ class ModelLookup:
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def from_alias(alias: str) -> ModelConfig:
|
def from_alias(alias: str) -> ModelConfig:
|
||||||
warnings.warn(
|
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,
|
DeprecationWarning,
|
||||||
stacklevel=2,
|
stacklevel=2,
|
||||||
)
|
)
|
||||||
|
|||||||
@ -139,7 +139,7 @@ class Flux1(nn.Module):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def from_alias(alias: str, quantize: int | None = None) -> "Flux1":
|
def from_alias(alias: str, quantize: int | None = None) -> "Flux1":
|
||||||
warnings.warn(
|
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,
|
DeprecationWarning,
|
||||||
stacklevel=2,
|
stacklevel=2,
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user