Skip to content

Suppress any errors found in a boolean expression after filtering out all possible types. #3666

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
Jul 12, 2017

Conversation

rowillia
Copy link
Contributor

@rowillia rowillia commented Jul 5, 2017

This fixes #3643

@emmatyping
Copy link
Member

LGTM (sorry for taking so long to review).

@rowillia
Copy link
Contributor Author

Ping @JukkaL ! Mind taking a quick look?

@gvanrossum gvanrossum merged commit c106579 into python:master Jul 12, 2017
@gvanrossum
Copy link
Member

Thanks!

(If you want to do a little cleanup, turning disable/enable-errors into a context manager would perhaps be nice... There are many other things in mypy that would also be better off as context managers.)

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.

--strict-optional warns in boolean expression x is not None and x > 10
3 participants