Skip to content

Conversation

jhance
Copy link
Collaborator

@jhance jhance commented Oct 11, 2015

This also squashes a minor weirdness where in order to infer
isinstance for resolution further in an and-expr, we were
parsing for isinstance in the entire expression!

Overall this is pretty self-explanatory. We get rid of the 'kind'
stuff and just return a tuple of optional dicts.

Fixes #900.

This also squashes a minor weirdness where in order to infer
isinstance for resolution further in an and-expr, we were
parsing for isinstance in the entire expression!

Overall this is pretty self-explanatory. We get rid of the 'kind'
stuff and just return a tuple of optional dicts.

Fixes python#900.
@jhance jhance force-pushed the if-dict branch 2 times, most recently from 15f866c to 42b6160 Compare October 11, 2015 19:57
Copy link
Collaborator

Choose a reason for hiding this comment

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

What if right_if_vars is None?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hmm, how come this didn't get caught by mypy running on itself?

@JukkaL
Copy link
Collaborator

JukkaL commented Oct 12, 2015

Thanks for the PR! Looks good, just a single thing -- I can look at it myself.

@JukkaL JukkaL merged commit 42b6160 into python:master Oct 12, 2015
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