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] Add a regression test for recent improvement to TypeInferenceBuilder::infer_name_load() #16310

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

AlexWaygood
Copy link
Member

Summary

This PR adds a regression test for the subtle bug fixed in #16284

Test Plan

I verified that this test fails if you check out c2b9fa8 and add the test.

@AlexWaygood AlexWaygood added testing Related to testing Ruff itself red-knot Multi-file analysis & type inference labels Feb 21, 2025
@AlexWaygood
Copy link
Member Author

It was wonderful how easy it was to write this test. Thanks so much @sharkdp for adding the custom-typeshed feature to mdtest!

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.

Very nice!

@AlexWaygood AlexWaygood force-pushed the alex/moduletype-fallback-test branch from 97531a6 to 23af637 Compare February 21, 2025 22:24
@AlexWaygood AlexWaygood enabled auto-merge (squash) February 21, 2025 22:25
@AlexWaygood AlexWaygood merged commit 64effa4 into main Feb 21, 2025
20 checks passed
@AlexWaygood AlexWaygood deleted the alex/moduletype-fallback-test branch February 21, 2025 22:28
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 testing Related to testing Ruff itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants