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

Avoid inferring invalid expr types for string annotation #14447

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

dhruvmanila
Copy link
Member

@dhruvmanila dhruvmanila commented Nov 19, 2024

Summary

fixes: #14440

Test Plan

Add a test case with all the invalid expressions in a string annotation context.

@dhruvmanila dhruvmanila added the red-knot Multi-file analysis & type inference label Nov 19, 2024
Copy link
Contributor

github-actions bot commented Nov 19, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@dhruvmanila dhruvmanila force-pushed the dhruv/avoid-infer-parsed branch 2 times, most recently from 8d9888f to c18604d Compare November 19, 2024 13:34
@dhruvmanila dhruvmanila marked this pull request as ready for review November 25, 2024 15:25
@dhruvmanila dhruvmanila merged commit 5a30ec0 into main Nov 25, 2024
20 checks passed
@dhruvmanila dhruvmanila deleted the dhruv/avoid-infer-parsed branch November 25, 2024 15:57
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.

[red-knot] Panics for string annotations
4 participants