Skip to content
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

fix: unpickling of unknown_length #2710

Merged
merged 4 commits into from
Sep 14, 2023
Merged

Conversation

agoose77
Copy link
Collaborator

This PR makes unknown_length use the singleton machinery so that it's trivially pickleable.

@agoose77 agoose77 requested a review from jpivarski September 14, 2023 08:23
It doesn't make sense to pass args to `.instance`, which in turn must be able to call `__new__`. Therefore, drop instance args altogether.
@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

Merging #2710 (46a18cf) into main (2825fad) will decrease coverage by 0.01%.
Report is 2 commits behind head on main.
The diff coverage is 88.23%.

Additional details and impacted files
Files Changed Coverage Δ
src/awkward/_nplikes/shape.py 83.33% <83.33%> (+0.28%) ⬆️
src/awkward/_singleton.py 89.65% <86.95%> (-10.35%) ⬇️
src/awkward/_backends/backend.py 86.66% <100.00%> (ø)
src/awkward/_nplikes/numpylike.py 73.76% <100.00%> (ø)

@agoose77 agoose77 temporarily deployed to docs-preview September 14, 2023 08:56 — with GitHub Actions Inactive
Copy link
Member

@jpivarski jpivarski left a comment

Choose a reason for hiding this comment

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

Okay, sounds good! It's also straightforward enough that I'll merge it, too.

@jpivarski jpivarski merged commit 48bb0a1 into main Sep 14, 2023
@jpivarski jpivarski deleted the agoose77/fix-pickle-unknown-length branch September 14, 2023 16:50
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.

2 participants