Skip to content

Fix crash on partial type, --allow-redefinition, and global declaration#21428

Merged
JukkaL merged 1 commit intomasterfrom
fix-partial-crash
May 7, 2026
Merged

Fix crash on partial type, --allow-redefinition, and global declaration#21428
JukkaL merged 1 commit intomasterfrom
fix-partial-crash

Conversation

@JukkaL
Copy link
Copy Markdown
Collaborator

@JukkaL JukkaL commented May 7, 2026

Filter out partial types when updating binder.

Fixes #21423.

Filter out partial types when updating binder.

Fixes #21423.
@JukkaL JukkaL requested a review from ilevkivskyi May 7, 2026 09:54
Copy link
Copy Markdown
Member

@ilevkivskyi ilevkivskyi left a comment

Choose a reason for hiding this comment

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

Nice, thanks!

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2026

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

@JukkaL JukkaL merged commit 3f0c355 into master May 7, 2026
24 checks passed
@JukkaL JukkaL deleted the fix-partial-crash branch May 7, 2026 10:59
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.0 regression] Crash with --allow-redefinition on partial type with global

2 participants