Skip to content

Use isinstance information when type checking 'or' expressions - #1709

Merged
JukkaL merged 1 commit into
python:masterfrom
rwbarton:rwbarton-isinstance-in-or
Jun 17, 2016
Merged

JukkaL merged 1 commit into
python:masterfrom
rwbarton:rwbarton-isinstance-in-or

Conversation

@rwbarton

Copy link
Copy Markdown
Contributor

Note: This is not the same as #942. It does address a pattern which
occurs at least once in mypy itself though:

if res and (not isinstance(res, Instance) or cast(Instance, res).args):

Note: This is not the same as python#942. It does address a pattern which
occurs at least once in mypy itself though:
```
if res and (not isinstance(res, Instance) or cast(Instance, res).args):
```
@JukkaL
JukkaL merged commit feaabde into python:master Jun 17, 2016
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