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
Correct restrictions on arithmetic conversions in GeneralMaths #2128
Owing to original misunderstanding of the nature of the StrictFloat type hint,
many of the conversion functions inside general_maths take only StrictFloats and will reject integers.
This was never the intended signature - it was incorrectly assumed that integers would be included
automatically - ( since $\mathbb{Z}$ is a subset of $\mathbb{R}$ in maths )
Task
a) Find over restrictions of StrictFloat and widen to StrictFloat|StrictInt
b) where necessary update tests to check that integers are not rejected
Acceptance Criteria
that all conversion functions are tested against appropriate integer input in updated unit tests
that all modified and all (ostensibly) unrelated tests pass
Activity
CoePaul commentedon Jul 21, 2026
Oh apparently integers are permitted by StrictFloat after all
CoePaul commentedon Jul 21, 2026
Closing as redundant