Skip to content

355 convert long num arrays #358

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 39 commits into from
Jul 10, 2025
Merged

355 convert long num arrays #358

merged 39 commits into from
Jul 10, 2025

Conversation

songmeo
Copy link
Contributor

@songmeo songmeo commented Jun 14, 2025

addresses #355

@coveralls
Copy link

coveralls commented Jun 14, 2025

Coverage Status

coverage: 93.784% (-0.2%) from 93.964%
when pulling 52c43e9 on 355-convert-long-num-arrays
into aa76710 on dev.

Copy link
Member

@pavel-kirienko pavel-kirienko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove changes from the other PR and add tests

elif len(s) <= 128:
return _strictify(Natural16(s)) if all(x >= 0 for x in s) else _strictify(Integer16(s))
elif len(s) <= 256:
return _strictify(Natural8(s)) if all(x >= 0 for x in s) else _strictify(Integer8(s))
if all(isinstance(x, (float, int, bool)) for x in s):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need either this, or raise an exception in the previous if

Suggested change
if all(isinstance(x, (float, int, bool)) for x in s):
elif all(isinstance(x, (float, int, bool)) for x in s):

@songmeo songmeo force-pushed the 355-convert-long-num-arrays branch from 40a95de to 6b83cdb Compare July 7, 2025 21:41
@songmeo songmeo force-pushed the 355-convert-long-num-arrays branch from 6b83cdb to e83708b Compare July 7, 2025 21:46
@songmeo songmeo force-pushed the 355-convert-long-num-arrays branch 6 times, most recently from 1d48c12 to 6e8005c Compare July 8, 2025 20:36
@songmeo songmeo force-pushed the 355-convert-long-num-arrays branch from 6e8005c to f0992a3 Compare July 8, 2025 20:50
@songmeo songmeo requested a review from pavel-kirienko July 9, 2025 10:18
@songmeo songmeo marked this pull request as ready for review July 9, 2025 20:23
@songmeo songmeo merged commit 83940f8 into dev Jul 10, 2025
20 of 21 checks passed
@songmeo songmeo deleted the 355-convert-long-num-arrays branch July 10, 2025 08:28
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.

3 participants