Skip to content

Fix crash during ParamSpec inference#14118

Merged
ilevkivskyi merged 2 commits intopython:masterfrom
ilevkivskyi:fix-paramspec-crash
Nov 17, 2022
Merged

Fix crash during ParamSpec inference#14118
ilevkivskyi merged 2 commits intopython:masterfrom
ilevkivskyi:fix-paramspec-crash

Conversation

@ilevkivskyi
Copy link
Copy Markdown
Member

Fixes #13903

The fix is straightforward, the formal to actual map needs to be refreshed twice, after both using external and internal type context.

@ilevkivskyi ilevkivskyi requested a review from JukkaL November 17, 2022 11:48
@github-actions
Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@ilevkivskyi
Copy link
Copy Markdown
Member Author

It looks like @jhance just fixed this in 885e361. But I am still going to land the tests, so that it will not regress in future.

@ilevkivskyi ilevkivskyi merged commit 823667d into python:master Nov 17, 2022
@ilevkivskyi ilevkivskyi deleted the fix-paramspec-crash branch November 17, 2022 21:11
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.

[INTERNAL ERROR] IndexError: list index out of range

1 participant