ruff/crates/ty_python_semantic/resources/mdtest/generics/pep695
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
..
aliases.md [ty] improve bad specialization results & error messages (#21840) 2025-12-11 19:21:34 -08:00
classes.md [ty] Complete support for `ParamSpec` (#21445) 2025-12-05 22:00:06 +05:30
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] impl `VarianceInferable` for `KnownInstanceType` (#20924) 2025-10-17 21:12:19 +02:00