Skip to content

Comments

[red-knot] Infer value expr for empty list / tuple target#15121

Merged
dhruvmanila merged 1 commit intomainfrom
dhruv/empty-target
Dec 23, 2024
Merged

[red-knot] Infer value expr for empty list / tuple target#15121
dhruvmanila merged 1 commit intomainfrom
dhruv/empty-target

Conversation

@dhruvmanila
Copy link
Member

Summary

This PR resolves #15058 (comment) by inferring the value expression even if there are no targets in the list / tuple expression.

Test Plan

Remove TODO from corpus tests, making sure it doesn't panic.

@dhruvmanila dhruvmanila added the ty Multi-file analysis & type inference label Dec 23, 2024
@dhruvmanila dhruvmanila changed the title re[red-knot] Infer value expr for empty list / tuple target [red-knot] Infer value expr for empty list / tuple target Dec 23, 2024
@github-actions
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@dhruvmanila dhruvmanila merged commit 68ada05 into main Dec 23, 2024
21 checks passed
@dhruvmanila dhruvmanila deleted the dhruv/empty-target branch December 23, 2024 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants