Skip to content

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Apr 2, 2019

Set up type promotions after the main semantic analyzer pass to
avoid the need to defer. This fixes an issue with test stubs,
but the existing approach probably worked with typeshed.
Another benefit of this approach is that things are easier to
reason about, as the main semantic analysis pass is a bit
simpler.

This fixes the testDivmod type checker test case.

Set up type promotions after the main semantic analyzer pass to
avoid the need to defer.  This fixes an issue with test stubs,
but the existing approach probably worked with typeshed.
Another benefit of this approach is that things are easier to
reason about, as the main semantic analysis pass is a bit
simpler.
@JukkaL JukkaL requested a review from ilevkivskyi April 2, 2019 14:44
Copy link
Member

@ilevkivskyi ilevkivskyi left a comment

Choose a reason for hiding this comment

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

LGTM!

@JukkaL JukkaL merged commit d2cf9c6 into master Apr 2, 2019
@JelleZijlstra JelleZijlstra deleted the semanal-divmod branch April 3, 2019 23:32
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