ruff/crates/ty_python_semantic/resources/mdtest/generics
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
..
legacy [ty] Handle explicit variance in legacy typevars (#17897) 2025-05-07 08:44:51 -04:00
pep695 [ty] Handle explicit variance in legacy typevars (#17897) 2025-05-07 08:44:51 -04:00
builtins.md Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00
scoping.md Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00