Skip to content

Fix accidentally disallowing empty returns in strict-optional #1981

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
Aug 3, 2016

Conversation

ddfisher
Copy link
Collaborator

@ddfisher ddfisher commented Aug 3, 2016

In #1980, I accidentally introduced a bug which disallowed empty returns in functions declared to return None.
#1980 actually fixed a little over 100 of the mypy --strict-optional mypy errors, but also introduced 88 "Return value expected" errors. This fixes those 88 errors.

@gvanrossum gvanrossum merged commit f10bfc7 into master Aug 3, 2016
@gvanrossum gvanrossum deleted the fix-return-value-expected branch August 3, 2016 22:57
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.

2 participants