Skip to content

Commit

Permalink
fix: missing fstring
Browse files Browse the repository at this point in the history
  • Loading branch information
vberlier committed Jul 20, 2022
1 parent d33305e commit 7ad01d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mecha/ast.py
Expand Up @@ -260,7 +260,7 @@ def from_value(cls, value: Any) -> "AstNumber":
value = string_to_number(value)
if isinstance(value, (int, float)):
return AstNumber(value=value)
raise ValueError("Invalid number {value!r}.")
raise ValueError(f"Invalid number {value!r}.")


@dataclass(frozen=True)
Expand Down

0 comments on commit 7ad01d0

Please sign in to comment.