mirror of
https://github.com/astral-sh/ruff.git
synced 2026-12-02 18:46:11 +08:00
## Summary After https://github.com/astral-sh/ruff/pull/19871, I realized that now that we are passing around shared references to `CycleDetector` visitors, we can now also simplify the `visit` callback signature; we don't need to smuggle a single visitor reference through it anymore. This is a pretty minor simplification, and it doesn't really make anything shorter since I typically used a very short name (`v`) for the smuggled reference, but I think it reduces cognitive overhead in reading these `visit` usages; the extra variable would likely be confusing otherwise for a reader. ## Test Plan Existing CI.