Skip to content
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

Allow Void typed values as returns from None functions #2829

Closed
wants to merge 5 commits into from

Conversation

TRManderson
Copy link
Contributor

Fixes #2828

@TRManderson
Copy link
Contributor Author

The test failing is one that explicitly tests that there is an error when attempting this :/

def f() -> None:
return None
def g() -> None:
return f() # E: No return value expected
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you keep the test case, but just remove the error message? I.e. it would test that this no longer generates an error message.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@ilevkivskyi
Copy link
Member

This PR looks good to me. It is still marked with Changes requested although changes has ben already made.

@ddfisher
Copy link
Collaborator

This has been superseded by a more complete fix in #3024. Thanks for looking into this!

@ddfisher ddfisher closed this Mar 19, 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.

4 participants