Skip to content

[mypyc] Resolve type aliases in function specialization #21233

Merged
JukkaL merged 4 commits intopython:masterfrom
esarp:irTypeAlias
Apr 15, 2026
Merged

[mypyc] Resolve type aliases in function specialization #21233
JukkaL merged 4 commits intopython:masterfrom
esarp:irTypeAlias

Conversation

@esarp
Copy link
Copy Markdown
Collaborator

@esarp esarp commented Apr 15, 2026

Attempt to resolve aliased types when applying function specializations, allowing for some optimizations that wouldn't be caught otherwise.

Still acclimating to the codebase, so if this makes sense to implement somewhere else let me know.

Copy link
Copy Markdown
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

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

LGTM

@JukkaL JukkaL merged commit a475a9a into python:master Apr 15, 2026
17 checks passed
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