Skip to content

Revise typing - #62

Merged
avikpln merged 3 commits into
mainfrom
revise-typing
Jul 30, 2026
Merged

Revise typing#62
avikpln merged 3 commits into
mainfrom
revise-typing

Conversation

@avikpln

@avikpln avikpln commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Renames Number to Real to better reflect the scope of the numeric type and
align with the library's mathematical naming conventions.

Restricts the sequence combination API to same-type operands, removing support
for heterogeneous combinations and simplifying the interface.

Adds exact rational arithmetic support to the real number type through Python's
Fraction, avoiding the rounding errors introduced by float.

avikpln added 3 commits July 30, 2026 03:20
Number is vague about scope, and Real fits the sequence library's
mathematical theme better.
Removes unused support for combining sequences with different element
types, and simplifies the combine() API.
Adds exact rational arithmetic support through Python's Fraction type.
Unlike float, Fraction avoids rounding errors by representing values as
exact numerator-denominator pairs.
@avikpln
avikpln merged commit 1b8c16e into main Jul 30, 2026
6 checks passed
@avikpln
avikpln deleted the revise-typing branch July 30, 2026 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant