ruff
bf200612 - Separate type check diagnostics builder (#13978)

Comment changes are shownComment changes are hidden
Commit
229 days ago
Separate type check diagnostics builder (#13978) ## Summary This PR creates a new `TypeCheckDiagnosticsBuilder` for the `TypeCheckDiagnostics` struct. The main motivation behind this is to separate the helpers required to build the diagnostics from the type inference builder itself. This allows us to use such helpers outside of the inference builder like for example in the unpacking logic in https://github.com/astral-sh/ruff/pull/13979. ## Test Plan `cargo insta test`
Author
Parents
  • crates/red_knot_python_semantic/src
    • File
      types.rs
    • types
      • File
        diagnostic.rs
      • File
        infer.rs