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] fix lookups of possibly-shadowed builtins #12898

Merged
merged 2 commits into from
Aug 15, 2024
Merged

Conversation

carljm
Copy link
Contributor

@carljm carljm commented Aug 15, 2024

If a builtin is conditionally shadowed by a global, we didn't correctly fall back to builtins for the not-defined-in-globals path (see added test for an example.)

Copy link
Contributor

github-actions bot commented Aug 15, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@carljm carljm added the red-knot Multi-file analysis & type inference label Aug 15, 2024
@carljm carljm merged commit 80efb86 into main Aug 15, 2024
20 checks passed
@carljm carljm deleted the cjm/builtinfix branch August 15, 2024 21:09
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