Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix and optimise overload compatibility checking #14018

Merged
merged 2 commits into from
Nov 6, 2022

Conversation

hauntsaninja
Copy link
Collaborator

@hauntsaninja hauntsaninja commented Nov 5, 2022

Discovered as part of #14017

@hauntsaninja hauntsaninja marked this pull request as draft November 5, 2022 23:44
@github-actions

This comment has been minimized.

@hauntsaninja hauntsaninja marked this pull request as ready for review November 6, 2022 00:24
previous_match_left_index = left_index
found_match = True
matched_overloads.add(left_index)
break
Copy link
Collaborator Author

@hauntsaninja hauntsaninja Nov 6, 2022

Choose a reason for hiding this comment

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

adding the break here is the main functional change, everything in the second commit preserves behaviour

@hauntsaninja hauntsaninja changed the title Fix bug in overload compatibility checking Fix bug and optimise overload compatibility checking Nov 6, 2022
@hauntsaninja hauntsaninja changed the title Fix bug and optimise overload compatibility checking Fix and optimise overload compatibility checking Nov 6, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Nov 6, 2022

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@hauntsaninja hauntsaninja merged commit 807da26 into python:master Nov 6, 2022
@hauntsaninja hauntsaninja deleted the overload-compat branch November 6, 2022 01:52
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