KEMBAR78
Properly push scope when checking lambda expressions by ilevkivskyi · Pull Request #8080 · python/mypy · GitHub
Skip to content

Conversation

ilevkivskyi
Copy link
Member

Fixes #8079

Previously function scope was pushed inconsistently in two branches of visit_lambda_expr() (it was only pushed in the second branch by check_func_item()). I believe there is still a small inconsistency, although I wasn't able to trigger a corresponding crash, I added a TODO about this.

@ilevkivskyi ilevkivskyi requested a review from JukkaL December 4, 2019 18:54
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!

@JukkaL JukkaL merged commit 130663b into python:master Dec 5, 2019
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: lambda within class body causes a crash

2 participants