Skip to content

Fix type variables leaking from inference #7113

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

Merged
merged 1 commit into from
Jul 1, 2019

Conversation

ilevkivskyi
Copy link
Member

Fixes #7101

This fixes another manifestation of an old issue where type variables can leak where a generic function is passed as an argument to another generic function.

@ilevkivskyi ilevkivskyi requested a review from JukkaL July 1, 2019 11:32
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.

Nice to see such a simple fix!

@JukkaL JukkaL merged commit 61eb912 into python:master Jul 1, 2019
@ilevkivskyi ilevkivskyi deleted the fix-leaking-var branch July 1, 2019 14:41
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.

Unbound type variables can leak out of type inference errors
2 participants