ruff
533e8a6e - [red-knot] move standalone expression_ty to TypeInferenceBuilder::file_expression_ty (#14879)

Commit
1 year ago
[red-knot] move standalone expression_ty to TypeInferenceBuilder::file_expression_ty (#14879) ## Summary Per suggestion in https://github.com/astral-sh/ruff/pull/14802#discussion_r1875455417 This is a bit less error-prone and allows us to handle both expressions in the current scope or a different scope. Also, there's currently no need for this method outside of `TypeInferenceBuilder`, so no reason to expose it in `types.rs`. ## Test Plan Pure refactor, no functional change; existing tests pass. --------- Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Author
Parents
Loading