Skip to content

Conversation

@dcreager
Copy link
Member

This PR extracts a lot of the complex logic in the match_parameters and check_types methods of our call binding machinery into separate helper types. This is setup for #18996, which will update this logic to handle variadic arguments. To do so, it is helpful to have the per-argument logic extracted into a method that we can call repeatedly for each element of a variadic argument.

This should be a pure refactoring, with no behavioral changes.

@dcreager dcreager added internal An internal refactor or improvement ty Multi-file analysis & type inference labels Jun 27, 2025
@github-actions
Copy link
Contributor

mypy_primer results

No ecosystem changes detected ✅

Copy link
Contributor

@carljm carljm left a comment

Choose a reason for hiding this comment

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

Looks good!

@dcreager dcreager merged commit caf3c91 into main Jun 27, 2025
38 checks passed
@dcreager dcreager deleted the dcreager/refactor-call-binding branch June 27, 2025 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal An internal refactor or improvement ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants