We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Code like this is rejected, because the lambda has None as the inferred return type:
import typing x = lambda: print(1) # type: typing.Function[[], None]
The type checker should accept lambdas that don't return a value. Any type for the lambda body should be accepted in this case.
The text was updated successfully, but these errors were encountered:
Allow lambda with Void return
5adeb8f
Fixes python#108
Successfully merging a pull request may close this issue.
Code like this is rejected, because the lambda has None as the inferred return type:
The type checker should accept lambdas that don't return a value. Any type for the lambda body should be accepted in this case.
The text was updated successfully, but these errors were encountered: