ruff/crates/red_knot_python_semantic/src
Alex Waygood fc59e1b17f
[red-knot] Merge TypeInferenceBuilder::infer_name_load and TypeInferenceBuilder::lookup_name (#16019)
## Summary

No functional change here; this is another simplification split out from
my outcome-refactor branch to reduce the diff there. This merges
`TypeInferenceBuilder::infer_name_load` and
`TypeInferenceBuilder::lookup_name`. This removes the need to have
extensive doc-comments about the purpose of
`TypeInferenceBuilder::lookup_name`, since the method only makes sense
when called from the specific context of
`TypeInferenceBuilder::infer_name_load`.

## Test Plan

`cargo test -p red_knot_python_semantic`
2025-02-08 19:42:14 +00:00
..
module_resolver [red-knot] Support custom typeshed Markdown tests (#15683) 2025-01-23 12:36:38 +01:00
semantic_index [red-knot] Unpacking and for loop assignments to attributes (#16004) 2025-02-07 11:30:51 +01:00
types [red-knot] Merge TypeInferenceBuilder::infer_name_load and TypeInferenceBuilder::lookup_name (#16019) 2025-02-08 19:42:14 +00:00
util [red-knot] Improve ergonomics for the PySlice trait (#13983) 2024-10-29 20:40:59 +00:00
ast_node_ref.rs @no_type_check support (#15122) 2024-12-30 09:42:18 +00:00
db.rs [red-knot] Rename TestDbBuilder::typeshed to .custom_typeshed (#15712) 2025-01-24 10:25:23 +00:00
lib.rs [red-knot] Rename *_ty functions (#15617) 2025-01-22 09:06:56 +01:00
lint.rs Add knot.toml schema (#15735) 2025-02-07 10:59:40 +01:00
module_name.rs Bind top-most parent when importing nested module (#14946) 2024-12-16 16:15:40 -05:00
node_key.rs [red-knot] Use memory address as AST node key (#14317) 2024-11-13 14:35:54 +01:00
program.rs [red-knot] Support custom typeshed Markdown tests (#15683) 2025-01-23 12:36:38 +01:00
python_platform.rs Add knot.toml schema (#15735) 2025-02-07 10:59:40 +01:00
python_version.rs Add knot.toml schema (#15735) 2025-02-07 10:59:40 +01:00
semantic_index.rs [red-knot] Internal refactoring of visibility constraints API (#15913) 2025-02-03 15:13:09 -05:00
semantic_model.rs [red-knot] Rename *_ty functions (#15617) 2025-01-22 09:06:56 +01:00
site_packages.rs Rename custom-typeshed-dir, target-version and current-directory CLI options (#14930) 2024-12-13 08:21:52 +00:00
stdlib.rs [red-knot] Rename and rework the CoreStdlibModule enum (#15071) 2024-12-19 20:59:00 +00:00
suppression.rs [red-knot] Add --ignore, --warn, and --error CLI arguments (#15689) 2025-01-24 16:20:15 +01:00
symbol.rs [red-knot] Make Symbol::or_fall_back_to() lazy (#15943) 2025-02-05 14:51:02 +00:00
types.rs [red-knot] Unpacker: Make invariant explicit and directly return a Type (#16018) 2025-02-07 12:00:04 +00:00
unpack.rs Allow assigning ellipsis literal as parameter default value (#14982) 2025-01-05 13:11:32 -06:00
visibility_constraints.rs [red-knot] Use ternary decision diagrams (TDDs) for visibility constraints (#15861) 2025-02-04 14:32:11 -05:00