KEMBAR78
Suppress any errors found in a boolean expression after filtering out all possible types. by rowillia · Pull Request #3666 · python/mypy · GitHub
Skip to content

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