ruff/crates/ty_python_semantic/resources/mdtest/generics/legacy
Douglas Creager e42cdf8495
[ty] Carry generic context through when converting class into `Callable` (#21798)
When converting a class (whether specialized or not) into a `Callable`
type, we should carry through any generic context that the constructor
has. This includes both the generic context of the class itself (if it's
generic) and of the constructor methods (if they are separately
generic).

To help test this, this also updates the `generic_context` extension
function to work on `Callable` types and unions; and adds a new
`into_callable` extension function that works just like
`CallableTypeOf`, but on value forms instead of type forms.

Pulled this out of #21551 for separate review.
2025-12-05 08:57:21 -05:00
..
classes.md [ty] Carry generic context through when converting class into `Callable` (#21798) 2025-12-05 08:57:21 -05:00
functions.md [ty] Support `type[T]` with type variables (#21650) 2025-11-28 09:20:24 +01:00
paramspec.md [ty] Split `ParamSpec` mdtests to separate legacy and PEP 695 tests (#21687) 2025-11-29 06:49:39 +00:00
variables.md [ty] Support `type[T]` with type variables (#21650) 2025-11-28 09:20:24 +01:00
variance.md [ty] eliminate is_fully_static (#18799) 2025-06-24 18:02:05 -07:00