Skip to content

Comments

[red-knot] Improve tests relating to type inference for exception handlers#13643

Merged
AlexWaygood merged 1 commit intomainfrom
improve-redknot-tests
Oct 5, 2024
Merged

[red-knot] Improve tests relating to type inference for exception handlers#13643
AlexWaygood merged 1 commit intomainfrom
improve-redknot-tests

Conversation

@AlexWaygood
Copy link
Member

Summary

As currently written, these tests break if you try to improve exception-handler control flow à la #13633, and they'll also break when we fix astral-sh/ty#238. This PR uses reveal_type to make them robust to future improvements in our understanding of exception-handler control-flow.

Test Plan

cargo test -p red_knot_python_semantic --lib

@AlexWaygood AlexWaygood added the ty Multi-file analysis & type inference label Oct 5, 2024
@AlexWaygood AlexWaygood enabled auto-merge (squash) October 5, 2024 16:57
@AlexWaygood AlexWaygood merged commit 7c5a7d9 into main Oct 5, 2024
@AlexWaygood AlexWaygood deleted the improve-redknot-tests branch October 5, 2024 16:59
@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

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.

support del statement and deletion of except handler names

1 participant