mirror of
https://github.com/astral-sh/ruff
synced 2026-01-22 05:51:03 -05:00
## 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`