ruff/crates/ty_python_semantic/resources/mdtest/generics/legacy
Shunsuke Shibayama e19c050386
[ty] disallow explicit specialization of type variables themselves (#21938)
## Summary

This PR makes explicit specialization of a type variable itself an
error, and the result of the specialization is `Unknown`.

The change also fixes https://github.com/astral-sh/ty/issues/1794.

## Test Plan

mdtests updated
new corpus test

---------

Co-authored-by: Carl Meyer <carl@astral.sh>
2025-12-12 15:49:20 -08:00
..
classes.md [ty] avoid unions of generic aliases of the same class in fixpoint (#21909) 2025-12-11 09:53:43 -08:00
functions.md [ty] Improve diagnostics for unsupported binary operations and unsupported augmented assignments (#21947) 2025-12-12 21:53:29 +00:00
paramspec.md [ty] improve bad specialization results & error messages (#21840) 2025-12-11 19:21:34 -08:00
variables.md [ty] disallow explicit specialization of type variables themselves (#21938) 2025-12-12 15:49:20 -08:00
variance.md [ty] eliminate is_fully_static (#18799) 2025-06-24 18:02:05 -07:00