Skip to content

Conversation

ilevkivskyi
Copy link
Member

By "real" unions I mean unions with more than one relevant item.

Fixes #5238

(I have found another bug in union math logic while looking at this code, but it is a bit more subtle, so we will fix it separately).

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.

Thanks for the quick fix! Feel free to merge once the build is green, but I'd suggest removing the slow pythoneval test case first as redundant.

@@ -401,3 +401,13 @@ def f(): # no annotation
path = 'test'
path = os.path.join(f(), 'test.py')
[out]

[case testOverloadRelpathRegression]
Copy link
Collaborator

Choose a reason for hiding this comment

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

This test case seems unnecessary as we have two test cases that cover this already.

@ilevkivskyi ilevkivskyi merged commit d089f45 into python:master Jun 19, 2018
@ilevkivskyi ilevkivskyi deleted the fix-overload-42 branch June 19, 2018 17:17
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.

Wrong overload item picked when strict optional disabled
2 participants