ruff/crates/ty_python_semantic/resources/mdtest/generics/legacy
Douglas Creager 0d9b6a0975
[ty] Handle explicit variance in legacy typevars (#17897)
We now track the variance of each typevar, and obey the `covariant` and
`contravariant` parameters to the legacy `TypeVar` constructor. We still
don't yet infer variance for PEP-695 typevars or for the
`infer_variance` legacy constructor parameter.

---------

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Carl Meyer <carl@astral.sh>
2025-05-07 08:44:51 -04:00
..
classes.md Update class literal display to use <class 'Foo'> style (#17889) 2025-05-06 20:11:25 -04:00
functions.md Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00
variables.md [ty] Handle explicit variance in legacy typevars (#17897) 2025-05-07 08:44:51 -04:00
variance.md [ty] Handle explicit variance in legacy typevars (#17897) 2025-05-07 08:44:51 -04:00