You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4a96a8d
Browse filesBrowse the repository at this point in the historyBrowse files
fix(math): correct type signatures for copysign, fmod and curried bindings
- math.copysign: fix y parameter type from int to float (Python always
takes two floats)
- math.fmod: fix parameter and return types from int to float (computes
floating-point remainder, not integer modulo)
- math.comb, math.pow, math.atan2, math.dist: convert curried parameter
syntax to tupled for consistency with all other multi-parameter
bindings in the codebase
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3-7Lines changed: 3 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,13 +11,9 @@ All notable changes to this project will be documented in this file.
11
11
12
12
### 🐞 Bug Fixes
13
13
14
-
* Fix `math.factorial` binding: changed signature from `float -> float` to `int -> int` to match Python 3.12+ where float arguments raise `TypeError`. Fixes test to use integer literals.
* Fix `math.copysign` binding: `y` parameter was incorrectly typed as `int`, now correctly `float` — `copysign(x, y)` always takes two floats
15
+
* Fix `math.fmod` binding: parameters were incorrectly typed as `int * int -> int`, now correctly `float * float -> float` — `fmod` computes floating-point remainder
16
+
* Fix `math.comb`, `math.pow`, `math.atan2`, `math.dist` bindings: converted curried parameter syntax to tupled for consistency with all other multi-parameter bindings in the codebase
0 commit comments