Skip to content

Fix crash when unpacking return value from overload - #21830

Open
hauntsaninja wants to merge 1 commit into
python:masterfrom
hauntsaninja:fixnumpy
Open

Fix crash when unpacking return value from overload#21830
hauntsaninja wants to merge 1 commit into
python:masterfrom
hauntsaninja:fixnumpy

Conversation

@hauntsaninja

@hauntsaninja hauntsaninja commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Fixes #21824
Fixes #19920
Closes #19921

Note that ilevkivskyi has a suggestion to change overload inference here: #19920 (comment)

While that is right, it is a little separate, and I think it is okay to remove the crash given that it now affects numpy and has been reported in other contexts too. We just keep the originally inferred tuple

Fixes python#21824
Fixes python#19920
Closes python#19921

Note that ilevkivskyi has a suggestion to change overload inference
here: python#19920 (comment)

While that is right, it is a little separate, and I think it is okay to
remove the crash given that it now affects numpy and has been reported
in other contexts too
@github-actions

Copy link
Copy Markdown
Contributor

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

Development

Successfully merging this pull request may close these issues.

Crash on the numpy main branch: AssertionError in check_multi_assignment_from_tuple Mypy crashes on async tuple to tuple assignment

1 participant