-
Notifications
You must be signed in to change notification settings - Fork 11
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 type instability in unflattening Tuples #67
Conversation
Thanks for opening this. Busy morning -- will try to review later today |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #67 +/- ##
==========================================
+ Coverage 97.36% 97.40% +0.03%
==========================================
Files 8 8
Lines 228 231 +3
==========================================
+ Hits 222 225 +3
Misses 6 6 ☔ View full report in Codecov by Sentry. |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is your view on using view
s (pun intended)?
I think views definitely make sense here. Very open to that. While you do that, I'm going to drop 1.5, because we really don't need it. |
Thinking it over a bit, I think going to views should be evaluated a bit more carefully, as it also requires generalizing a lot of the signatures of the |
I'm gonna suggest approving this as is. I bumped the version. Maybe we can release #68 in the same swoop? |
Good point. Yeah, let's defer that until later. I do think it would be good to look at though, because we're currently doing a lot of copying. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I'd really quite like to stick to the standard 1-version-per-PR rule though, so please tag this separately from #68
No problem! |
On master this does not infer:
This PR fixes this and (so I believe) improves the type inference with a recursive implementation and a fallback for empty tuples.