mirror of
https://github.com/astral-sh/ruff
synced 2026-01-20 21:10:48 -05:00
This updates our representation of functions to more closely match our representation of classes. The new `OverloadLiteral` and `FunctionLiteral` classes represent a function definition in the AST. If a function is generic, this is unspecialized. `FunctionType` has been updated to represent a function type, which is specialized if the function is generic. (These names are chosen to match `ClassLiteral` and `ClassType` on the class side.) This PR does not add a separate `Type` variant for `FunctionLiteral`. Maybe we should? Possibly as a follow-on PR? Part of https://github.com/astral-sh/ty/issues/462 --------- Co-authored-by: Micha Reiser <micha@reiser.io>
ty
ty is an extremely fast type checker. Currently, it is a work-in-progress and not ready for production use.
The Rust code for ty lives in this repository; see CONTRIBUTING.md for more information on contributing to ty.
See the ty repo for ty documentation and releases.