KEMBAR78
Always freeze type variables that were previously freshen by ilevkivskyi · Pull Request #8075 · python/mypy · GitHub
Skip to content

Conversation

@ilevkivskyi
Copy link
Member

Fixes #8072

The fix is straightforward, just copy the logic from the working case (see last test) to two other code paths. Note that only two first cases I added crash on master, but I also add the last one for completeness because I didn't find a similar existing test case.

@ilevkivskyi ilevkivskyi requested a review from JukkaL December 4, 2019 16:12
Copy link
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix!

@ilevkivskyi ilevkivskyi merged commit ce8951e into python:master Dec 4, 2019
@ilevkivskyi ilevkivskyi deleted the fix-serialize-generic branch December 4, 2019 16:43
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.

Regression: crash when serializing alias to generic class method

2 participants