ruff/crates/red_knot_python_semantic
Alex Waygood b6c7ba4f8e
[red-knot] Reduce Salsa lookups in `Type::find_name_in_mro` (#16582)
## Summary

Theoretically this should be slightly more performant, since the
`class.is_known()` calls each do a separate Salsa lookup, which we can
avoid if we do a single `match` on the value of `class.known()`. It also
ends up being two lines less code overall!

## Test Plan

`cargo test -p red_knot_python_semantic`
2025-03-10 07:55:22 +01:00
..
resources [red-knot] Consistent spelling of "metaclass" and "meta-type" (#16576) 2025-03-09 12:30:32 +00:00
src [red-knot] Reduce Salsa lookups in `Type::find_name_in_mro` (#16582) 2025-03-10 07:55:22 +01:00
tests red_knot_test: add support for diagnostic snapshotting 2025-02-05 13:02:54 -05:00
Cargo.toml [red-knot] Add a test to ensure that `KnownClass::try_from_file_and_name()` is kept up to date (#16326) 2025-02-24 12:14:20 +00:00
build.rs Modernize build scripts (#13837) 2024-10-20 22:35:35 +01:00
mdtest.py [red-knot] Fix possible TOCTOU mistake in mdtest runner (#15673) 2025-01-22 15:24:25 +00:00
mdtest.py.lock [red-knot] Markdown test runner (#15632) 2025-01-21 14:06:35 +01:00