ruff
d444d52e - [ty] Infer lambda expressions with `Callable` type context (#22633)

Commit
49 days ago
[ty] Infer lambda expressions with `Callable` type context (#22633) Infer lambda expressions eagerly as part of their parent scope, and with type context. This allows us to infer more precise types for lambda expressions, as well as perform check assignability against `Callable` annotations. Note that this does not change the inferred type of a lambda parameter with the body of the lambda, even if it is annotated. That part is a little more tricky, so will be addressed in a followup PR.
Author
Parents
Loading