mirror of https://github.com/astral-sh/ruff
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. |
||
|---|---|---|
| .. | ||
| README.md | ||
| ty_extensions.pyi | ||
README.md
The build.rs copies the ty_extensions.pyi file in this directory into
the vendor/typeshed/stdlib directory.