Skip to content

[mypyc] Propagate errors in optional vec type lookup - #22350

Merged
p-sawicki merged 2 commits into
python:masterfrom
p-sawicki:propagate-errors-vecs
Nov 3, 2026
Merged

p-sawicki merged 2 commits into
python:masterfrom
p-sawicki:propagate-errors-vecs

Conversation

@p-sawicki

Copy link
Copy Markdown
Collaborator

Propagate errors from lookup of __args__ when resolving the optional type object used as the type argument for vec[T]. Take an owned reference to the result to prevent use-after-free, since the owning tuple is immediately decref'd.

@p-sawicki
p-sawicki merged commit f0eb638 into python:master Nov 3, 2026
18 checks passed
@p-sawicki
p-sawicki deleted the propagate-errors-vecs branch November 3, 2026 11:09
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