ruff
134fefa9 - [red-knot] Rename `bindings_ty`, `declarations_ty` (#15618)

Comment changes are shownComment changes are hidden
Commit
183 days ago
[red-knot] Rename `bindings_ty`, `declarations_ty` (#15618) ## Summary Rename two functions with outdated names (they used to return `Type`s): * `bindings_ty` => `symbol_from_bindings` (returns `Symbol`) * `declarations_ty` => `symbol_from_declarations` (returns a `SymbolAndQualifiers` result) I chose `symbol_from_*` instead of `*_symbol` as I found the previous name quite confusing. Especially since `binding_ty` and `declaration_ty` also exist (singular). ## Test Plan — --------- Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Author
Parents
  • crates/red_knot_python_semantic/src
    • File
      types.rs
    • types
      • File
        infer.rs