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

Separate type check diagnostics builder #13978

Merged
merged 4 commits into from
Oct 30, 2024
Merged

Conversation

dhruvmanila
Copy link
Member

@dhruvmanila dhruvmanila commented Oct 29, 2024

Summary

This PR creates a new TypeCheckDiagnosticsBuilder for the TypeCheckDiagnostics struct. The main motivation behind this is to separate the helpers required to build the diagnostics from the type inference builder itself. This allows us to use such helpers outside of the inference builder like for example in the unpacking logic in #13979.

Test Plan

cargo insta test

@dhruvmanila dhruvmanila added the red-knot Multi-file analysis & type inference label Oct 29, 2024
@dhruvmanila dhruvmanila force-pushed the dhruv/diagnostics-builder branch 2 times, most recently from 5cbd74e to 257ce5a Compare October 30, 2024 08:10
Copy link
Contributor

github-actions bot commented Oct 30, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@dhruvmanila dhruvmanila marked this pull request as ready for review October 30, 2024 10:12
Copy link
Member

@MichaReiser MichaReiser left a comment

Choose a reason for hiding this comment

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

Nice!

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.

This is great!

@dhruvmanila dhruvmanila enabled auto-merge (squash) October 30, 2024 18:45
@dhruvmanila dhruvmanila merged commit bf20061 into main Oct 30, 2024
19 checks passed
@dhruvmanila dhruvmanila deleted the dhruv/diagnostics-builder branch October 30, 2024 18:50
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.

3 participants