ruff/crates/ty_vendored/ty_extensions
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
..
README.md Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00
ty_extensions.pyi [ty] Carry generic context through when converting class into `Callable` (#21798) 2025-12-05 08:57:21 -05:00

README.md

The build.rs copies the ty_extensions.pyi file in this directory into the vendor/typeshed/stdlib directory.