Skip to content

Conversation

ilevkivskyi
Copy link
Member

Old semantic analyzer first pass is setting whether an import is a top level one or not. New semantic analyzer reachability pass didn't do this. As a result, this screwed up import priorities, and in turn, ordering of modules within SCCs. This caused many Cannot determine type of 'foo' errors since we don't defer module top levels.

@ilevkivskyi ilevkivskyi requested a review from JukkaL February 18, 2019 12:17
Copy link
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

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

This will hopefully fix many issues both in tests and when checking real code! Just a few minor things, otherwise looks good.

@ilevkivskyi ilevkivskyi merged commit a2f44c6 into python:master Feb 18, 2019
@ilevkivskyi ilevkivskyi deleted the new-fix-import-prios branch February 18, 2019 14:24
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