mirror of
https://github.com/astral-sh/ruff
synced 2026-01-21 05:20:49 -05:00
This PR removes the `Constraints` trait. We removed the `bool` implementation several weeks back, and are using `ConstraintSet` everywhere. There have been discussions about trying to include the reason for an assignability failure as part of the result, but that there are no concrete plans to do so soon, and it's not clear that we'll need the `Constraints` trait to do that. (We can ideally just update the `ConstraintSet` type directly.) In the meantime, this just complicates the code for no good reason. This PR is a pure refactoring, and contains no behavioral changes. --------- Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>