KEMBAR78
Push return type for lambda expressions by ilevkivskyi · Pull Request #3523 · python/mypy · GitHub
Skip to content

Conversation

ilevkivskyi
Copy link
Member

This fixes #3243 and similar crashes on lambda generators.

Solution is straightforward: push return type (if known, or Any otherwise) same as we do for normal functions.

@gvanrossum
Copy link
Member

Looks fine to me, but I'll let @JukkaL have the final say.

@JukkaL
Copy link
Collaborator

JukkaL commented Jun 14, 2017

LGTM

@JukkaL JukkaL merged commit 638dc62 into python:master Jun 14, 2017
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 yield inside lambda

3 participants