ruff/crates/ty_python_semantic/resources/mdtest/generics/legacy
Ibraheem Ahmed 1d6ae8596a
[ty] Prefer exact matches when solving constrained type variables (#21165)
## Summary

The solver is currently order-dependent, and will choose a supertype
over the exact type if it appears earlier in the list of constraints. We
could be smarter and try to choose the most precise subtype, but I
imagine this is something the new constraint solver will fix anyways,
and this fixes the issue showing up on
https://github.com/astral-sh/ruff/pull/21070.
2025-10-31 10:58:09 -04:00
..
classes.md [ty] Fix panic on recursive class definitions in a stub that use constrained type variables (#20955) 2025-10-18 13:02:55 +00:00
functions.md [ty] Prefer exact matches when solving constrained type variables (#21165) 2025-10-31 10:58:09 -04:00
variables.md [ty] defer inference of legacy TypeVar bound/constraints/defaults (#20598) 2025-10-09 21:08:37 +00:00
variance.md [ty] eliminate is_fully_static (#18799) 2025-06-24 18:02:05 -07:00