Skip to content

[mypyc] Fix error handling when unboxing tuples - #21952

Merged
JukkaL merged 2 commits into
masterfrom
mypyc-tuple-unbox-fix
Sep 7, 2026
Merged

[mypyc] Fix error handling when unboxing tuples#21952
JukkaL merged 2 commits into
masterfrom
mypyc-tuple-unbox-fix

Conversation

@JukkaL

@JukkaL JukkaL commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

Preserve conversion exceptions, such as i64 overflow, instead of
replacing them with TypeError when unboxing tuple items. Clean
up references to earlier items before propagating an error.

I checked that the added tests behave as expected also at IR
level and would fail without the changes.

I used coding agent assist.

Preserve conversion exceptions, such as i64 overflow, instead of
replacing them with TypeError when unboxing tuple items. Clean
up references to earlier items before propagating an error.
@JukkaL
JukkaL merged commit 4515336 into master Sep 7, 2026
18 checks passed
@JukkaL
JukkaL deleted the mypyc-tuple-unbox-fix branch September 7, 2026 10:45
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