Skip to content

Commit 3c7d98d

Browse files
dbrattliclaude
andauthored
refactor(python): rename FormattableString field from str to fmt (#4637)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 4c36f76 commit 3c7d98d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Fable.Transforms/Python/Replacements.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1678,8 +1678,8 @@ let formattableString
16781678
(args: Expr list)
16791679
=
16801680
match i.CompiledName, thisArg, args with
1681-
| "Create", None, [ str; args ] -> objExpr [ "str", str; "args", args ] |> Some
1682-
| "get_Format", Some x, _ -> getFieldWith r t x "str" |> Some
1681+
| "Create", None, [ str; args ] -> objExpr [ "fmt", str; "args", args ] |> Some
1682+
| "get_Format", Some x, _ -> getFieldWith r t x "fmt" |> Some
16831683
| "get_ArgumentCount", Some x, _ ->
16841684
// Use int32(len()) to ensure consistent return type
16851685
let lenExpr =

0 commit comments

Comments
 (0)