Skip to content

[ty] linear variance inference #18713

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

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

ericmarkmartin
Copy link
Contributor

Summary

Implement linear-time variance inference for type variables.

Inspired by Martin Huschenbett's PyCon 2025 Talk.

Test Plan

update tests
add new test case for mutually recursive classes

@ericmarkmartin ericmarkmartin force-pushed the variance-inference branch 7 times, most recently from bf98b63 to 47d348e Compare June 17, 2025 06:56
@AlexWaygood AlexWaygood added the ty Multi-file analysis & type inference label Jun 17, 2025
@ericmarkmartin ericmarkmartin force-pushed the variance-inference branch 2 times, most recently from d3992d0 to fc1325f Compare June 18, 2025 03:36
Copy link
Contributor

github-actions bot commented Jun 18, 2025

mypy_primer results

No ecosystem changes detected ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ty Multi-file analysis & type inference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants