Skip to content

Try to fix problems caused by in-place modification of typevar defaults #19382

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 1 commit into
base: master
Choose a base branch
from

Conversation

sterliakov
Copy link
Collaborator

@sterliakov sterliakov commented Jul 5, 2025

Fixes #19186. Fixes #19185. Fixes #19192. Fixes behavior in #14851 (comment) (note that assert_type should fail with bare class, it is still generic until actually used unsubscripted).

I do not know yet whether these changes are actually valid. Let's check the primer output and run all tests first.

Copy link
Contributor

github-actions bot commented Jul 6, 2025

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant