Commit a105686
Fix option_dict_to_string flag serialization (missing f-string) (#804)
For a valueless (flag-style) option, option_dict_to_string emitted the
literal string "{i}" instead of the option name, because the None branch
used a plain string literal rather than an f-string. Flags now serialize
as their name and round-trip cleanly through option_string_to_dict.
Also collapsed the accumulator loop into a single join expression.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 3174edf commit a105686
1 file changed
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
944 | 944 | | |
945 | 945 | | |
946 | 946 | | |
947 | | - | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
952 | | - | |
953 | | - | |
| 947 | + | |
| 948 | + | |
954 | 949 | | |
955 | 950 | | |
956 | 951 | | |
| |||
0 commit comments