I found this helpful for understanding some of the stuff that was going on in https://github.com/astral-sh/ruff/pull/17005.
Markdown files within the mdtest/ subdirectory are tests of type inference and type checking;
executed by the tests/mdtest.rs integration test.
See crates/red_knot_test/README.md for documentation of this test format.