Content-Length: 247718 | pFad | http://github.com/astral-sh/ruff/pull/16546

70 [red-knot] WIP: Break up call binding into two phases by dcreager · Pull Request #16546 · astral-sh/ruff · GitHub
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

[red-knot] WIP: Break up call binding into two phases #16546

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dcreager
Copy link
Member

@dcreager dcreager commented Mar 7, 2025

Pushing up for visibility on my progress, not ready for review yet.

This (will eventually) break up call binding into two phases:

  • Matching parameters just looks at the names and kinds (positional/keyword) of each formal and actual parameters, and matches them up. Most of the current call binding errors happen during this phase.

  • Once we have matched up formal and actual parameters, we can infer types of each actual parameter, and make sure that each one is assignable to the corresponding formal parameter type.

@AlexWaygood AlexWaygood added the red-knot Multi-file analysis & type inference label Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
red-knot Multi-file analysis & type inference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/astral-sh/ruff/pull/16546

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy