Commit 6f4b6c2
committed
fix: resolve type coercion issue in sum_results function
- Add dynamic default value calculation based on inferred types
- Use 0.0 for floats and 0 for integers to avoid type coercion
- Prevents downstream issues caused by incorrect type handling1 parent 1b7cee1 commit 6f4b6c2
2 files changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
839 | 839 | | |
840 | 840 | | |
841 | 841 | | |
842 | | - | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
843 | 846 | | |
844 | | - | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
845 | 854 | | |
846 | 855 | | |
847 | 856 | | |
| |||
0 commit comments