Skip to content

Comments

[red-knot] mdtest usability improvements for reveal_type#13709

Merged
carljm merged 1 commit intomainfrom
cjm/mdtest-undefined-reveal
Oct 11, 2024
Merged

[red-knot] mdtest usability improvements for reveal_type#13709
carljm merged 1 commit intomainfrom
cjm/mdtest-undefined-reveal

Conversation

@carljm
Copy link
Contributor

@carljm carljm commented Oct 10, 2024

Summary

Fixes #13708.

Silence undefined-reveal diagnostic on any line including a # revealed: assertion.

Add more context to un-silenced undefined-reveal diagnostics in mdtest test failures. This doesn't make the failure output less verbose, but it hopefully clarifies the right fix for an undefined-reveal in mdtest, while still making it clear what red-knot's normal diagnostic for this looks like.

Test Plan

Added and updated tests.

@carljm carljm added the ty Multi-file analysis & type inference label Oct 10, 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.

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you!

@carljm carljm merged commit 6ae833e into main Oct 11, 2024
@carljm carljm deleted the cjm/mdtest-undefined-reveal branch October 11, 2024 00:33
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.

Extremely verbose mdtest output if a revealed type is not what is expected

2 participants